chore: format code (#1327)

This commit is contained in:
Kevin Wan
2021-12-15 13:43:05 +08:00
committed by GitHub
parent a7bd993c0c
commit 4ccdf4ec72
2 changed files with 2 additions and 2 deletions

View File

@@ -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))
}