Сделать отправку сообщения идемпотентной по Idempotency-Key с общей таблицей ключей и их чисткой
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package store
|
||||
|
||||
// SetAfterClaim installs a hook that runs between the claiming statement and
|
||||
// the replay lookup of AppendOnce; it returns a function restoring the old one.
|
||||
func SetAfterClaim(hook func()) (restore func()) {
|
||||
old := afterClaim
|
||||
afterClaim = hook
|
||||
return func() { afterClaim = old }
|
||||
}
|
||||
Reference in New Issue
Block a user