Skip to content

Commit

Permalink
Fix max-sequece key in fly (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
ftocal committed Jul 3, 2023
1 parent 2a92a93 commit 4e8b43a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fly/notifier/vaa_last_sequence.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func NewLastSequenceNotifier(c *redis.Client, prefix string) *LastSequenceNotifi
if prefix == "" {
prefix = "wormscan:vaa-max-sequence"
} else {
prefix = fmt.Sprintf("%s-wormscan:vaa-max-sequence", prefix)
prefix = fmt.Sprintf("%s:wormscan:vaa-max-sequence", prefix)
}

return &LastSequenceNotifier{
Expand Down
4 changes: 2 additions & 2 deletions fly/notifier/vaa_last_sequence_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func TestNewLastSequenceNotifier(t *testing.T) {

l := NewLastSequenceNotifier(nil, "mainnet-staging")

assert.Equal(t, "mainnet-staging-wormscan:vaa-max-sequence", l.prefix)
assert.Equal(t, "mainnet-staging:wormscan:vaa-max-sequence", l.prefix)
}

func TestNewLastSequenceNotifierBackwardsCompat(t *testing.T) {
Expand All @@ -33,5 +33,5 @@ func TestNewLastSequenceNotifierWithPrefix(t *testing.T) {

l := NewLastSequenceNotifier(nil, prefix)

assert.Equal(t, "mainnet-staging-wormscan:vaa-max-sequence", l.prefix)
assert.Equal(t, "mainnet-staging:wormscan:vaa-max-sequence", l.prefix)
}

0 comments on commit 4e8b43a

Please sign in to comment.