forked from quic-go/quic-go
fix documentation for baseFlowController.UpdateSendWindow
This commit is contained in:
@@ -45,8 +45,7 @@ func (c *baseFlowController) AddBytesSent(n protocol.ByteCount) {
|
|||||||
c.bytesSent += n
|
c.bytesSent += n
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateSendWindow should be called after receiving a WindowUpdateFrame
|
// UpdateSendWindow is be called after receiving a MAX_{STREAM_}DATA frame.
|
||||||
// it returns true if the window was actually updated
|
|
||||||
func (c *baseFlowController) UpdateSendWindow(offset protocol.ByteCount) {
|
func (c *baseFlowController) UpdateSendWindow(offset protocol.ByteCount) {
|
||||||
if offset > c.sendWindow {
|
if offset > c.sendWindow {
|
||||||
c.sendWindow = offset
|
c.sendWindow = offset
|
||||||
|
|||||||
Reference in New Issue
Block a user