Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,8 @@ func TestLocal_ValidateP2PHybridConfig(t *testing.T) {

for i, test := range tests {
test := test
t.Run(fmt.Sprintf("test=%d", i), func(t *testing.T) {
name := fmt.Sprintf("test=%d", i)
t.Run(name, func(t *testing.T) {
t.Parallel()

c := Local{
Expand All @@ -782,7 +783,7 @@ func TestLocal_ValidateP2PHybridConfig(t *testing.T) {
NetAddress: test.netAddress,
}
err := c.ValidateP2PHybridConfig()
require.Equal(t, test.err, err != nil, "test=%d", i)
require.Equal(t, test.err, err != nil, name)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion network/p2p/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (s *serviceImpl) Subscribe(topic string, val pubsub.ValidatorEx) (SubNextCa
return nil, err
}
// t.SetScoreParams() // already set in makePubSub
return t.Subscribe()
return t.Subscribe(pubsub.WithBufferSize(32768))
}

// Publish publishes data to the given topic
Expand Down