Skip to content

Commit

Permalink
wip: 🔕 temporary commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam committed Sep 11, 2024
1 parent e800ead commit a15219b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion internal/http/handlers/api_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (s *apiSession) ApiSessionGetAllRequests(c echo.Context, sessionUuid api.Se

var result = make([]api.SessionRequest, 0, len(requests))

for i := range len(requests) {
for i := range requests {
result = append(result, s.convertStoredRequestToApiStruct(requests[i]))
}

Expand Down
4 changes: 2 additions & 2 deletions internal/http/middlewares/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func New( //nolint:funlen,gocognit,gocyclo
) echo.MiddlewareFunc {
var ignoreHeaderPrefixes = make([]string, len(cfg.IgnoreHeaderPrefixes))

for i := range len(cfg.IgnoreHeaderPrefixes) {
for i := range cfg.IgnoreHeaderPrefixes {
ignoreHeaderPrefixes[i] = strings.ToUpper(strings.TrimSpace(cfg.IgnoreHeaderPrefixes[i])) // normalize each
}

Expand Down Expand Up @@ -174,7 +174,7 @@ loop:
if len(ignorePrefixes) > 0 {
upperName := strings.ToUpper(name)

for i := range len(ignorePrefixes) {
for i := range ignorePrefixes {
if strings.HasPrefix(upperName, ignorePrefixes[i]) {
continue loop
}
Expand Down
8 changes: 4 additions & 4 deletions internal/storage/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (s *Redis) DeleteRequests(sessionUUID string) (bool, error) {
// removing plan
var keys = []string{key.requests()}

for i := range len(requestUUIDs) {
for i := range requestUUIDs {
keys = append(keys, key.request(requestUUIDs[i]))
}

Expand Down Expand Up @@ -194,7 +194,7 @@ func (s *Redis) CreateRequest(sessionUUID, clientAddr, method, uri string, conte
forUpdate = append(forUpdate, requestUUIDs...)
}

for i := range len(forUpdate) {
for i := range forUpdate {
pipe.Expire(s.ctx, key.request(forUpdate[i]), s.ttl)
}
}
Expand Down Expand Up @@ -256,7 +256,7 @@ func (s *Redis) GetAllRequests(sessionUUID string) ([]Request, error) {
// convert request UUIDs into storage keys
keys := make([]string, len(UUIDs))

for i := range len(UUIDs) {
for i := range UUIDs {
keys[i] = key.request(UUIDs[i])
}

Expand All @@ -266,7 +266,7 @@ func (s *Redis) GetAllRequests(sessionUUID string) ([]Request, error) {
return nil, gettingErr
}

for i := range len(UUIDs) {
for i := range UUIDs {
if packed, ok := rawRequests[i].(string); ok {
rData := redisRequest{}

Expand Down

0 comments on commit a15219b

Please sign in to comment.