Skip to content

Commit

Permalink
feat(relayer): add failed status to Stringer interface impl for event…
Browse files Browse the repository at this point in the history
…status (#13495)
  • Loading branch information
cyberhorsey authored Mar 29, 2023
1 parent 02a582e commit 858f485
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/relayer/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const (

// String returns string representation of an event status for logging
func (e EventStatus) String() string {
return [...]string{"new", "retriable", "done", "onlyOwner"}[e]
return [...]string{"new", "retriable", "done", "failed", "onlyOwner"}[e]
}

func (e EventType) String() string {
Expand Down
5 changes: 5 additions & 0 deletions packages/relayer/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ func Test_EventStatus_String(t *testing.T) {
EventStatusRetriable,
"retriable",
},
{
"failed",
EventStatusFailed,
"failed",
},
{
"done",
EventStatusDone,
Expand Down

0 comments on commit 858f485

Please sign in to comment.