From d232f14682b9959f6f989f4f70cf6b550c2feb80 Mon Sep 17 00:00:00 2001 From: Mahmud Ridwan Date: Sun, 10 Sep 2023 21:54:43 +0600 Subject: [PATCH] Update comment --- redsync.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/redsync.go b/redsync.go index b65e7b3..fb5b368 100644 --- a/redsync.go +++ b/redsync.go @@ -125,9 +125,10 @@ func WithValue(v string) Option { }) } -// WithFailFast can be used to quickly acquire and release the locker. -// When some redis servers are blocking, we do not need to wait for all redis servers response. as long as the quorum is met, it will be returned immediately. -// The effect of this parameter is to achieve low latency, avoid redis blocking causing lock/unlock to not return for a long time. +// WithFailFast can be used to quickly acquire and release the lock. +// When some Redis servers are blocking, we do not need to wait for responses from all the Redis servers response. +// As long as the quorum is met, we can assume the lock is acquired. The effect of this parameter is to achieve low +// latency, avoid Redis blocking causing Lock/Unlock to not return for a long time. func WithFailFast(b bool) Option { return OptionFunc(func(m *Mutex) { m.failFast = b