Skip to content

Commit

Permalink
chore: format code (zeromicro#1327)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Dec 15, 2021
1 parent a7bd993 commit 4ccdf4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/stores/kv/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ type (
Hvals(key string) ([]string, error)
Incr(key string) (int64, error)
Incrby(key string, increment int64) (int64, error)
Llen(key string) (int, error)
Lindex(key string, index int64) (string, error)
Llen(key string) (int, error)
Lpop(key string) (string, error)
Lpush(key string, values ...interface{}) (int, error)
Lrange(key string, start, stop int) ([]string, error)
Expand Down
2 changes: 1 addition & 1 deletion core/stores/redis/redislock.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (rl *RedisLock) Release() (bool, error) {
return reply == 1, nil
}

// SetExpire sets the expire.
// SetExpire sets the expiration.
func (rl *RedisLock) SetExpire(seconds int) {
atomic.StoreUint32(&rl.seconds, uint32(seconds))
}

0 comments on commit 4ccdf4e

Please sign in to comment.