瀏覽代碼

chore: format code (#1327)

Kevin Wan 3 年之前
父節點
當前提交
4ccdf4ec72
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      core/stores/kv/store.go
  2. 1 1
      core/stores/redis/redislock.go

+ 1 - 1
core/stores/kv/store.go

@@ -38,8 +38,8 @@ type (
 		Hvals(key string) ([]string, error)
 		Hvals(key string) ([]string, error)
 		Incr(key string) (int64, error)
 		Incr(key string) (int64, error)
 		Incrby(key string, increment int64) (int64, error)
 		Incrby(key string, increment int64) (int64, error)
-		Llen(key string) (int, error)
 		Lindex(key string, index int64) (string, error)
 		Lindex(key string, index int64) (string, error)
+		Llen(key string) (int, error)
 		Lpop(key string) (string, error)
 		Lpop(key string) (string, error)
 		Lpush(key string, values ...interface{}) (int, error)
 		Lpush(key string, values ...interface{}) (int, error)
 		Lrange(key string, start, stop int) ([]string, error)
 		Lrange(key string, start, stop int) ([]string, error)

+ 1 - 1
core/stores/redis/redislock.go

@@ -88,7 +88,7 @@ func (rl *RedisLock) Release() (bool, error) {
 	return reply == 1, nil
 	return reply == 1, nil
 }
 }
 
 
-// SetExpire sets the expire.
+// SetExpire sets the expiration.
 func (rl *RedisLock) SetExpire(seconds int) {
 func (rl *RedisLock) SetExpire(seconds int) {
 	atomic.StoreUint32(&rl.seconds, uint32(seconds))
 	atomic.StoreUint32(&rl.seconds, uint32(seconds))
 }
 }