You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This makes it harder to tell whether the lock was not acquired due to context being canceled or retries being exhausted. I think it would be better if these situations returned different error messages.
The text was updated successfully, but these errors were encountered:
If the context is canceled while trying to acquire a lock, ErrFailed is returned, which has the message
"redsync: failed to acquire lock"
:redsync/mutex.go
Line 98 in b292c9f
but ErrFailed is also returned when all retries have been exhausted:
redsync/mutex.go
Line 133 in b292c9f
This makes it harder to tell whether the lock was not acquired due to context being canceled or retries being exhausted. I think it would be better if these situations returned different error messages.
The text was updated successfully, but these errors were encountered: