Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-yamux
Commits
9b04322f
Unverified
Commit
9b04322f
authored
Feb 21, 2021
by
Marten Seemann
Committed by
GitHub
Feb 21, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #52 from libp2p/remove-stream-shrink
remove unused Stream.Shrink() method
parents
6cac08a8
a8f2d8b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
session_test.go
session_test.go
+0
-6
stream.go
stream.go
+0
-4
No files found.
session_test.go
View file @
9b04322f
...
@@ -740,9 +740,6 @@ func TestManyStreams_PingPong(t *testing.T) {
...
@@ -740,9 +740,6 @@ func TestManyStreams_PingPong(t *testing.T) {
return
return
}
}
// Shrink the internal buffer!
stream
.
Shrink
()
// Write out the 'pong'
// Write out the 'pong'
n
,
err
=
stream
.
Write
(
pong
)
n
,
err
=
stream
.
Write
(
pong
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -791,9 +788,6 @@ func TestManyStreams_PingPong(t *testing.T) {
...
@@ -791,9 +788,6 @@ func TestManyStreams_PingPong(t *testing.T) {
t
.
Errorf
(
"bad: %s"
,
buf
)
t
.
Errorf
(
"bad: %s"
,
buf
)
return
return
}
}
// Shrink the buffer
stream
.
Shrink
()
}
}
}
}
...
...
stream.go
View file @
9b04322f
...
@@ -462,7 +462,3 @@ func (s *Stream) SetWriteDeadline(t time.Time) error {
...
@@ -462,7 +462,3 @@ func (s *Stream) SetWriteDeadline(t time.Time) error {
}
}
return
nil
return
nil
}
}
// Shrink is a no-op. The internal buffer automatically shrinks itself.
func
(
s
*
Stream
)
Shrink
()
{
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment