Browse Source

make linter happy

pull/1350/head
Anton Kaliaev 6 years ago
parent
commit
3d32474da8
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      p2p/switch_test.go

+ 2
- 2
p2p/switch_test.go View File

@ -91,8 +91,8 @@ func MakeSwitchPair(t testing.TB, initSwitch func(int, *Switch) *Switch) (*Switc
func initSwitchFunc(i int, sw *Switch) *Switch {
sw.SetAddrBook(&addrBookMock{
addrs: make(map[string]struct{}, 0),
ourAddrs: make(map[string]struct{}, 0)})
addrs: make(map[string]struct{}),
ourAddrs: make(map[string]struct{})})
// Make two reactors of two channels each
sw.AddReactor("foo", NewTestReactor([]*conn.ChannelDescriptor{


Loading…
Cancel
Save