Room creation time with ms resolution (#3362)

This commit is contained in:
Raja Subramanian
2025-01-23 09:42:30 +05:30
committed by GitHub
parent f435c5cb62
commit 524441446f
6 changed files with 21 additions and 13 deletions
+3 -1
View File
@@ -123,7 +123,9 @@ func (s *RedisStore) Stop() {
func (s *RedisStore) StoreRoom(_ context.Context, room *livekit.Room, internal *livekit.RoomInternal) error {
if room.CreationTime == 0 {
room.CreationTime = time.Now().Unix()
now := time.Now()
room.CreationTime = now.Unix()
room.CreationTimeMs = now.UnixMilli()
}
roomData, err := proto.Marshal(room)