Bit more clean up around probe controller refactor (#3227)

* Bit more clean up around probe controller refactor

* consistent order
This commit is contained in:
Raja Subramanian
2024-12-02 13:36:27 +05:30
committed by GitHub
parent ceefa8d150
commit 12b3da0a40
3 changed files with 7 additions and 21 deletions
+2 -4
View File
@@ -236,9 +236,6 @@ func NewStreamAllocator(params StreamAllocatorParams, enabled bool, allowPause b
s.probeController = NewProbeController(ProbeControllerParams{
Config: s.params.Config.ProbeController,
Prober: s.prober,
BWE: s.params.BWE,
Pacer: s.params.Pacer,
Logger: params.Logger,
})
@@ -769,6 +766,7 @@ func (s *StreamAllocator) handleSignalPacerProbeObserverClusterComplete(event Ev
probeClusterId, _ := event.Data.(ccutils.ProbeClusterId)
pci := s.params.Pacer.EndProbeCluster(probeClusterId)
s.probeController.ProbeClusterDone(pci)
s.prober.ClusterDone(pci)
}
func (s *StreamAllocator) handleSignalResume(event Event) {
@@ -1069,8 +1067,8 @@ func (s *StreamAllocator) maybeStopProbe() {
activeProbeClusterId := s.probeController.GetActiveProbeClusterId()
if activeProbeClusterId != ccutils.ProbeClusterIdInvalid {
pci := s.params.Pacer.EndProbeCluster(activeProbeClusterId)
s.prober.Reset(pci)
s.probeController.ProbeClusterDone(pci)
s.prober.Reset(pci)
}
}