Skip to content

Commit

Permalink
remove call to asyncNotify in Stream.Read
Browse files Browse the repository at this point in the history
Stream.Read itself is the only consumer on that channel (assuming no concurrent
calls to this function), so there's nobody else to notify of anything.
  • Loading branch information
marten-seemann authored and aschmahmann committed Aug 6, 2021
1 parent 2a49240 commit ecf8949
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ func (s *Stream) StreamID() uint32 {

// Read is used to read from the stream
func (s *Stream) Read(b []byte) (n int, err error) {
defer asyncNotify(s.recvNotifyCh)
START:
s.stateLock.Lock()
state := s.readState
Expand Down

0 comments on commit ecf8949

Please sign in to comment.