tired of typing "struct{}{}"
This commit is contained in:
1 parent
6db12d682e
commit
e8e9a43abd
5 files changed
+10
-8
No files matched your search
@@ -50,7 +50,7 @@ func newMockConnection(from, to *Peer) Connection {
|
||||
func checkEqualConns(t *testing.T, ourName PeerName, got, wanted map[PeerName]Connection) {
|
||||
checkConns := make(PeerNameSet)
|
||||
for _, conn := range wanted {
|
||||
checkConns[conn.Remote().Name] = struct{}{}
|
||||
checkConns[conn.Remote().Name] = void
|
||||
}
|
||||
for _, conn := range got {
|
||||
remoteName := conn.Remote().Name
|
||||
|
||||
Reference in new issue
Block a user