Skip to content

Commit 94e88e9

Browse files
committed
Remove unnecessary utility
1 parent 789507a commit 94e88e9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

livekit-rtc/livekit/rtc/data_track.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ class DataTrackFrame:
7272
user_timestamp: Optional[int] = None
7373
"""The frame's user timestamp, if one is associated."""
7474

75-
@staticmethod
76-
def _timestamp_now() -> int:
77-
return int(time.time() * 1000)
78-
7975
def with_user_timestamp_now(self) -> DataTrackFrame:
8076
"""Associates the current Unix timestamp (in milliseconds) with the frame.
8177
@@ -84,7 +80,7 @@ def with_user_timestamp_now(self) -> DataTrackFrame:
8480
"""
8581
return DataTrackFrame(
8682
payload=self.payload,
87-
user_timestamp=self._timestamp_now(),
83+
user_timestamp=int(time.time() * 1000),
8884
)
8985

9086
def duration_since_timestamp(self) -> Optional[float]:

0 commit comments

Comments
 (0)