Skip to content

Commit

Permalink
Fixed minor linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Jun 21, 2023
1 parent 828e169 commit 87d0a75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cachestore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ const (

// genericStruct is an example struct for testing
type genericStruct struct {
BoolField bool
FloatField float64
IntField int
StringField string
BoolField bool `json:"bool_field"`
FloatField float64 `json:"float_field"`
IntField int `json:"int_field"`
StringField string `json:"string_field"`
}

// newMockRedisClient will create a new redis mock client
Expand Down
3 changes: 1 addition & 2 deletions lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ func (c *Client) WaitWriteLock(ctx context.Context, lockKey string, ttl, ttw int
ctx, lockKey, ttl,
); len(secret) > 0 || time.Now().After(end) {
break
} else {
time.Sleep(lockRetrySleepTime)
}
time.Sleep(lockRetrySleepTime)
}

// No secret, lock creating failed or did not complete
Expand Down

0 comments on commit 87d0a75

Please sign in to comment.