Merge pull request #3087 from lucas-clemente/fix-update-send-window-doc

fix documentation for baseFlowController.UpdateSendWindow
This commit is contained in:
Marten Seemann
2021-03-16 22:16:23 +08:00
committed by GitHub

View File

@@ -45,8 +45,7 @@ func (c *baseFlowController) AddBytesSent(n protocol.ByteCount) {
c.bytesSent += n
}
// UpdateSendWindow should be called after receiving a WindowUpdateFrame
// it returns true if the window was actually updated
// UpdateSendWindow is be called after receiving a MAX_{STREAM_}DATA frame.
func (c *baseFlowController) UpdateSendWindow(offset protocol.ByteCount) {
if offset > c.sendWindow {
c.sendWindow = offset