remove unused error return value from HandleMaxStreamsFrame

This commit is contained in:
Marten Seemann 2021-03-07 11:07:10 +08:00
parent 3b916f2e80
commit 8a0b1dd78d
5 changed files with 12 additions and 24 deletions

View file

@ -212,14 +212,13 @@ func (m *streamsMap) getOrOpenSendStream(id protocol.StreamID) (sendStreamI, err
panic("")
}
func (m *streamsMap) HandleMaxStreamsFrame(f *wire.MaxStreamsFrame) error {
func (m *streamsMap) HandleMaxStreamsFrame(f *wire.MaxStreamsFrame) {
switch f.Type {
case protocol.StreamTypeUni:
m.outgoingUniStreams.SetMaxStream(f.MaxStreamNum)
case protocol.StreamTypeBidi:
m.outgoingBidiStreams.SetMaxStream(f.MaxStreamNum)
}
return nil
}
func (m *streamsMap) UpdateLimits(p *wire.TransportParameters) {