:rocket: This PR description was created by Ellipsis for commit f76c55a9ef14d6db964dcb6e9d8f283596c5d08d.
Summary:
This PR introduces a new error type for lock acquisition failures, includes the failsafe-go package for retry policies, and updates memorystore.go and userstore.go to handle lock acquisition with a retry policy.
Key points:
Added AdvisoryLockError in /pkg/models/errors.go
Included failsafe-go package in go.mod and go.sum
Added tryAcquireAdvisoryLock function in /pkg/store/postgres/memorystore.go
Updated userstore.go to use failsafe.Get with a retry policy for lock acquisition
Summary:
This PR introduces a new error type for lock acquisition failures, includes the
failsafe-go
package for retry policies, and updatesmemorystore.go
anduserstore.go
to handle lock acquisition with a retry policy.Key points:
AdvisoryLockError
in/pkg/models/errors.go
failsafe-go
package ingo.mod
andgo.sum
tryAcquireAdvisoryLock
function in/pkg/store/postgres/memorystore.go
userstore.go
to usefailsafe.Get
with a retry policy for lock acquisitionGenerated with :heart: by ellipsis.dev