Keep congestion state only in BWE. (#3224)

This commit is contained in:
Raja Subramanian
2024-12-02 09:42:51 +05:30
committed by GitHub
parent 7f0c14306f
commit 3c42ccbb64
6 changed files with 35 additions and 18 deletions
+7
View File
@@ -136,6 +136,13 @@ func (r *RemoteBWE) HandleREMB(
}
}
func (r *RemoteBWE) CongestionState() bwe.CongestionState {
r.lock.RLock()
defer r.lock.RUnlock()
return r.congestionState
}
func (r *RemoteBWE) congestionDetectionStateMachine() (bool, bwe.CongestionState, int64) {
newState := r.congestionState
update := false