Skip to content

Commit

Permalink
imp: deprecate ErrPacketTimeout error (#5626)
Browse files Browse the repository at this point in the history
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
  • Loading branch information
natebeauregard and colin-axner authored Jan 24, 2024
1 parent 97ea045 commit b8c5f58
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions modules/core/04-channel/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ var (
ErrSequenceReceiveNotFound = errorsmod.Register(SubModuleName, 11, "sequence receive not found")
ErrSequenceAckNotFound = errorsmod.Register(SubModuleName, 12, "sequence acknowledgement not found")
ErrInvalidPacket = errorsmod.Register(SubModuleName, 13, "invalid packet")
ErrPacketTimeout = errorsmod.Register(SubModuleName, 14, "packet timeout")
ErrTooManyConnectionHops = errorsmod.Register(SubModuleName, 15, "too many connection hops")
ErrInvalidAcknowledgement = errorsmod.Register(SubModuleName, 16, "invalid acknowledgement")
ErrAcknowledgementExists = errorsmod.Register(SubModuleName, 17, "acknowledgement for packet already exists")
ErrInvalidChannelIdentifier = errorsmod.Register(SubModuleName, 18, "invalid channel identifier")

// Deprecated: ErrPacketTimeout is deprecated and will be removed in a future release.
// Please use ErrTimeoutElapsed instead.
ErrPacketTimeout = errorsmod.Register(SubModuleName, 14, "packet timeout")

ErrTooManyConnectionHops = errorsmod.Register(SubModuleName, 15, "too many connection hops")
ErrInvalidAcknowledgement = errorsmod.Register(SubModuleName, 16, "invalid acknowledgement")
ErrAcknowledgementExists = errorsmod.Register(SubModuleName, 17, "acknowledgement for packet already exists")
ErrInvalidChannelIdentifier = errorsmod.Register(SubModuleName, 18, "invalid channel identifier")

// packets already relayed errors
ErrPacketReceived = errorsmod.Register(SubModuleName, 19, "packet already received")
Expand Down

0 comments on commit b8c5f58

Please sign in to comment.