Skip to content

Commit

Permalink
deprecated: deprecate ErrPacketTimeout error
Browse files Browse the repository at this point in the history
  • Loading branch information
natebeauregard committed Jan 16, 2024
1 parent f3c76cd commit e8f4d22
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 e8f4d22

Please sign in to comment.