From 4ccdf4ec7206e7a28d008614e0a8a8443f6ca421 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Wed, 15 Dec 2021 13:43:05 +0800 Subject: [PATCH] chore: format code (#1327) --- core/stores/kv/store.go | 2 +- core/stores/redis/redislock.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/stores/kv/store.go b/core/stores/kv/store.go index c43dcb9f..882dd1e0 100644 --- a/core/stores/kv/store.go +++ b/core/stores/kv/store.go @@ -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) diff --git a/core/stores/redis/redislock.go b/core/stores/redis/redislock.go index 7440d6dd..5ed5f24e 100644 --- a/core/stores/redis/redislock.go +++ b/core/stores/redis/redislock.go @@ -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)) }