Skip to content

Commit

Permalink
Merge pull request #33 from libp2p/fix-linters
Browse files Browse the repository at this point in the history
fix go vet and staticcheck
  • Loading branch information
marten-seemann authored Jul 2, 2021
2 parents bd0110c + 3779514 commit d0442a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion p2p/net/conn-security-multistream/ssms.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (sm *SSMuxer) SecureOutbound(ctx context.Context, insecure net.Conn, p peer
// ensure the correct peer connected to us
if sconn.RemotePeer() != p {
sconn.Close()
return nil, false, fmt.Errorf("Unexpected peer")
return nil, false, fmt.Errorf("unexpected peer")
}
} else {
sconn, err = tpt.SecureOutbound(ctx, insecure, p)
Expand Down
4 changes: 2 additions & 2 deletions p2p/net/conn-security-multistream/ssms_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func TestNoCommonProto(t *testing.T) {
defer a.Close()
_, _, err := at.SecureInbound(ctx, a)
if err == nil {
t.Fatal("conection should have failed")
t.Error("conection should have failed")
}
}()

Expand All @@ -72,7 +72,7 @@ func TestNoCommonProto(t *testing.T) {
defer b.Close()
_, _, err := bt.SecureOutbound(ctx, b, "peerA")
if err == nil {
t.Fatal("connection should have failed")
t.Error("connection should have failed")
}
}()
wg.Wait()
Expand Down

0 comments on commit d0442a2

Please sign in to comment.