Skip to content

Commit

Permalink
Update waku/v2/protocol/filter/filter_test.go
Browse files Browse the repository at this point in the history
Use fmt.Sprintf() instead of "+" for more beauty and speed

Co-authored-by: richΛrd <info@richardramos.me>
  • Loading branch information
romanzac and richard-ramos committed Oct 20, 2023
1 parent 5cfb269 commit 2fae323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions waku/v2/protocol/filter/filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,8 @@ func (s *FilterTestSuite) TestPubSubMultiOverlapContentTopic() {
suffix = fmt.Sprintf("%02d", i)
messages = append(messages, WakuMsg{
pubSubTopic: testTopic,
contentTopic: testContentTopic + suffix,
payload: testPayload + suffix,
contentTopic: fmt.Sprintf("%s%02d", testContentTopic, i),
payload: fmt.Sprintf("%s%02d", testPayload, i),
})
}

Expand Down

0 comments on commit 2fae323

Please sign in to comment.