File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import (
1919var luaReleaseScript string
2020
2121//go:embed refresh.lua
22- var luaRefeshScript string
22+ var luaRefreshScript string
2323
2424//go:embed pttl.lua
2525var luaPTTLScript string
@@ -28,7 +28,7 @@ var luaPTTLScript string
2828var luaObtainScript string
2929
3030var (
31- luaRefresh = redis .NewScript (luaRefeshScript )
31+ luaRefresh = redis .NewScript (luaRefreshScript )
3232 luaRelease = redis .NewScript (luaReleaseScript )
3333 luaPTTL = redis .NewScript (luaPTTLScript )
3434 luaObtain = redis .NewScript (luaObtainScript )
@@ -186,7 +186,7 @@ func (l *Lock) Metadata() string {
186186}
187187
188188// TTL returns the remaining time-to-live. Returns 0 if the lock has expired.
189- // In case lock is holding multiple keys, TTL returns the min ttl among thoses keys.
189+ // In case lock is holding multiple keys, TTL returns the min ttl among those keys.
190190func (l * Lock ) TTL (ctx context.Context ) (time.Duration , error ) {
191191 if l == nil {
192192 return 0 , ErrLockNotHeld
You can’t perform that action at this time.
0 commit comments