move ConnectedAt to Participant interface (#3383)

This commit is contained in:
Paul Wells
2025-01-30 05:45:47 -08:00
committed by GitHub
parent a4ccc7cc7f
commit 3970e965f6
3 changed files with 68 additions and 2 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ func NewParticipant(params ParticipantParams) (*ParticipantImpl, error) {
}),
pendingTracks: make(map[string]*pendingTrackInfo),
pendingPublishingTracks: make(map[livekit.TrackID]*pendingTrackInfo),
connectedAt: time.Now(),
connectedAt: time.Now().Truncate(time.Millisecond),
rttUpdatedAt: time.Now(),
cachedDownTracks: make(map[livekit.TrackID]*downTrackState),
dataChannelStats: telemetry.NewBytesTrackStats(