Tweaks to prometheus participant counter (#1240)

* Tweaks to prometheus participant counter

Ensure that we don't miss adding a count in migration scenarios

* avoid nil ICEConfig
This commit is contained in:
David Zhao
2022-12-19 14:30:14 -08:00
committed by GitHub
parent 50e39b9985
commit c1d7dbd4fc
2 changed files with 12 additions and 1 deletions
+1
View File
@@ -83,6 +83,7 @@ func NewTransportManager(params TransportManagerParams) (*TransportManager, erro
t := &TransportManager{
params: params,
mediaLossProxy: NewMediaLossProxy(MediaLossProxyParams{Logger: params.Logger}),
iceConfig: &livekit.ICEConfig{},
}
t.mediaLossProxy.OnMediaLossUpdate(t.onMediaLossUpdate)