Room creation time with ms resolution (#3362)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user