chore: update dependencies

This commit is contained in:
nadoo committed 2023-11-28 18:26:33 +08:00
1 parent d0e2d9be42
commit c7d072372b
7 files changed
+132 -134

No files matched your search

+2 -2
View File
@@ -208,7 +208,7 @@ func TestWriteTo(t *testing.T) {
t.Fatal("WriteTo nw mismatch", nw)
}
if bytes.Compare(sndbuf, rcvbuf.Bytes()) != 0 {
if !bytes.Equal(sndbuf, rcvbuf.Bytes()) {
t.Fatal("mismatched echo bytes")
}
}
@@ -282,7 +282,7 @@ func TestWriteToV2(t *testing.T) {
t.Fatal("WriteTo nw mismatch", nw)
}
if bytes.Compare(sndbuf, rcvbuf.Bytes()) != 0 {
if !bytes.Equal(sndbuf, rcvbuf.Bytes()) {
t.Fatal("mismatched echo bytes")
}
}
+1 -1
View File
@@ -139,7 +139,7 @@ func (s *Stream) tryReadv2(b []byte) (n int, err error) {
// in an ideal environment:
// if more than half of buffer has consumed, send read ack to peer
// based on round-trip time of ACK, continous flowing data
// based on round-trip time of ACK, continuous flowing data
// won't slow down because of waiting for ACK, as long as the
// consumer keeps on reading data
// s.numRead == n also notify window at the first read