Skip to content

Commit

Permalink
fix(tcpreuse): remove windows specific code (#3039)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo authored Nov 21, 2024
1 parent 08f9d22 commit 1c9e5a1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 51 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build !unix && !windows
//go:build !unix

package sampledconn

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func TestSampledConn(t *testing.T) {
assert.Equal(t, "hel", string(peeked[:]))

buf := make([]byte, 5)
_, err = clientConn.Read(buf)
_, err = io.ReadFull(clientConn, buf)
assert.NoError(t, err)
assert.Equal(t, "hello", string(buf))
} else {
Expand Down
49 changes: 0 additions & 49 deletions p2p/transport/tcpreuse/internal/sampledconn/sampledconn_windows.go

This file was deleted.

0 comments on commit 1c9e5a1

Please sign in to comment.