Use monotonic time util. (#3112)

Thank you @paulwe for doing this. I was promising to do this for a
while, but just like other times, empty promises :-(
This commit is contained in:
Raja Subramanian
2024-10-17 10:49:24 +05:30
committed by GitHub
parent 19c5ed6343
commit 40b10af960
14 changed files with 23 additions and 117 deletions
-5
View File
@@ -66,8 +66,6 @@ type iceConfigCacheKey struct {
type RoomManager struct {
lock sync.RWMutex
baseTime time.Time
config *config.Config
rtcConfig *rtc.WebRTCConfig
serverInfo *livekit.ServerInfo
@@ -97,7 +95,6 @@ type RoomManager struct {
}
func NewLocalRoomManager(
baseTime time.Time,
conf *config.Config,
roomStore ObjectStore,
currentNode routing.LocalNode,
@@ -119,7 +116,6 @@ func NewLocalRoomManager(
}
r := &RoomManager{
baseTime: baseTime,
config: conf,
rtcConfig: rtcConf,
currentNode: currentNode,
@@ -449,7 +445,6 @@ func (r *RoomManager) StartSession(
subscriberAllowPause = *pi.SubscriberAllowPause
}
participant, err = rtc.NewParticipant(rtc.ParticipantParams{
BaseTime: r.baseTime,
Identity: pi.Identity,
Name: pi.Name,
SID: sid,