Skip to content

Commit 037ad1e

Browse files
committed
Fix bug
1 parent 18dab87 commit 037ad1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/transport/http2_server.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,6 @@ func (t *http2Server) Drain(debugData string) {
12931293
}
12941294
t.drainEvent = grpcsync.NewEvent()
12951295
t.controlBuf.put(&goAway{code: http2.ErrCodeNo, debugData: []byte(debugData), headsUp: true})
1296-
t.controlBuf.put(&goAway{code: http2.ErrCodeNo, debugData: []byte(debugData), headsUp: true})
12971296
}
12981297

12991298
var goAwayPing = &ping{data: [8]byte{1, 6, 1, 8, 0, 3, 3, 9}}
@@ -1409,7 +1408,7 @@ func (t *http2Server) Peer() *peer.Peer {
14091408
return &peer.Peer{
14101409
Addr: t.peer.Addr,
14111410
LocalAddr: t.peer.LocalAddr,
1412-
AuthInfo: t.peer.AuthInfo,
1411+
AuthInfo: t.peer.AuthInfo, // Can be nil
14131412
}
14141413
}
14151414

0 commit comments

Comments
 (0)