Skip to content

Commit

Permalink
chore: rename to OnCongestionEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyxdd committed Sep 15, 2023
1 parent 7f6f257 commit 80ebd7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion congestion/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type CongestionControl interface {
CanSend(bytesInFlight ByteCount) bool
MaybeExitSlowStart()
OnPacketAcked(number PacketNumber, ackedBytes ByteCount, priorInFlight ByteCount, eventTime time.Time)
OnPacketLost(number PacketNumber, lostBytes ByteCount, priorInFlight ByteCount)
OnCongestionEvent(number PacketNumber, lostBytes ByteCount, priorInFlight ByteCount)
OnRetransmissionTimeout(packetsRetransmitted bool)
SetMaxDatagramSize(size ByteCount)
InSlowStart() bool
Expand Down
2 changes: 1 addition & 1 deletion internal/ackhandler/cc_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (a *ccAdapter) OnPacketAcked(number protocol.PacketNumber, ackedBytes proto
}

func (a *ccAdapter) OnCongestionEvent(number protocol.PacketNumber, lostBytes protocol.ByteCount, priorInFlight protocol.ByteCount) {
a.CC.OnPacketLost(congestion.PacketNumber(number), congestion.ByteCount(lostBytes), congestion.ByteCount(priorInFlight))
a.CC.OnCongestionEvent(congestion.PacketNumber(number), congestion.ByteCount(lostBytes), congestion.ByteCount(priorInFlight))
}

func (a *ccAdapter) OnRetransmissionTimeout(packetsRetransmitted bool) {
Expand Down

0 comments on commit 80ebd7e

Please sign in to comment.