Skip to content

Commit 67e50be

Browse files
authored
transport: Remove redundant if in handleGoAway (#6930)
1 parent e96f521 commit 67e50be

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/transport/http2_client.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -1325,10 +1325,8 @@ func (t *http2Client) handleGoAway(f *http2.GoAwayFrame) {
13251325
for streamID, stream := range t.activeStreams {
13261326
if streamID > id && streamID <= upperLimit {
13271327
// The stream was unprocessed by the server.
1328-
if streamID > id && streamID <= upperLimit {
1329-
atomic.StoreUint32(&stream.unprocessed, 1)
1330-
streamsToClose = append(streamsToClose, stream)
1331-
}
1328+
atomic.StoreUint32(&stream.unprocessed, 1)
1329+
streamsToClose = append(streamsToClose, stream)
13321330
}
13331331
}
13341332
t.mu.Unlock()

0 commit comments

Comments
 (0)