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
@@ -25,11 +25,12 @@ import (
"go.uber.org/atomic"
"google.golang.org/protobuf/proto"
"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/logger"
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/sfu/buffer"
"github.com/livekit/livekit-server/pkg/sfu/streamtracker"
"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/logger"
)
const (
@@ -98,7 +99,6 @@ func NewStreamTrackerManager(
maxPublishedLayer: buffer.InvalidLayerSpatial,
maxTemporalLayerSeen: buffer.InvalidLayerTemporal,
clockRate: clockRate,
closed: core.NewFuse(),
}
s.trackInfo.Store(proto.Clone(trackInfo).(*livekit.TrackInfo))