Merge pull request 'fixed error definition' (#506) from fx-505 into main
All checks were successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful

Reviewed-on: #506
This commit was merged in pull request #506.
This commit is contained in:
2026-02-13 15:47:38 +00:00

View File

@@ -2,22 +2,17 @@ package storage
import (
"context"
"errors"
"time"
"github.com/tech/sendico/fx/storage/model"
)
type storageError string
func (e storageError) Error() string {
return string(e)
}
var (
ErrQuoteExpired = storageError("fx.storage: quote expired")
ErrQuoteConsumed = storageError("fx.storage: quote consumed")
ErrQuoteNotFirm = storageError("fx.storage: quote is not firm")
ErrQuoteConsumptionRace = storageError("fx.storage: quote consumption collision")
ErrQuoteExpired = errors.New("fx.storage: quote expired")
ErrQuoteConsumed = errors.New("fx.storage: quote consumed")
ErrQuoteNotFirm = errors.New("fx.storage: quote is not firm")
ErrQuoteConsumptionRace = errors.New("fx.storage: quote consumption collision")
)
type Repository interface {