Split out load balancer into a separate module (#657)

This commit is contained in:
Raja Subramanian
2022-04-26 15:46:30 +05:30
committed by GitHub
parent 2f902a3edc
commit a83bd5c2f6
3 changed files with 167 additions and 106 deletions
+1 -2
View File
@@ -75,11 +75,10 @@ type StreamTracker struct {
}
func NewStreamTracker(params StreamTrackerParams) *StreamTracker {
s := &StreamTracker{
return &StreamTracker{
params: params,
status: StreamStatusStopped,
}
return s
}
func (s *StreamTracker) OnStatusChanged(f func(status StreamStatus)) {