Update usage of core.Fuse. (#2519)

This commit is contained in:
Denys Smirnov
2024-02-28 03:48:58 +02:00
committed by GitHub
parent 7649e4ffab
commit f5eb6c8a95
9 changed files with 35 additions and 23 deletions
+3 -3
View File
@@ -19,10 +19,11 @@ import (
"time"
"github.com/frostbyte73/core"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/telemetry"
"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/logger"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/telemetry"
)
const (
@@ -51,7 +52,6 @@ func NewParticipantTrafficLoad(params ParticipantTrafficLoadParams) *Participant
p := &ParticipantTrafficLoad{
params: params,
tracksStatsMedia: make(map[livekit.TrackID]*livekit.RTPStats),
closed: core.NewFuse(),
}
go p.reporter()
return p