Сделать отправку сообщения идемпотентной по Idempotency-Key с общей таблицей ключей и их чисткой
This commit is contained in:
@@ -28,6 +28,10 @@ const (
|
||||
// member of, so outsiders cannot probe for existence.
|
||||
var ErrNotFound = apperr.NotFound("chat not found")
|
||||
|
||||
// ErrKeyReused answers a send whose Idempotency-Key is already bound to a
|
||||
// message with a different text.
|
||||
var ErrKeyReused = apperr.Conflict("Idempotency-Key was already used with a different message")
|
||||
|
||||
type Chat struct {
|
||||
ID uuid.UUID
|
||||
Title string
|
||||
|
||||
Reference in New Issue
Block a user