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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user