SegmentRange: remove timestamp (#32750)

* add deprecation warning

* remove timestamp

* Update logreader.py
old-commit-hash: d5ce4b3085
This commit is contained in:
Shane Smiskol 2024-06-13 23:19:32 -07:00 committed by GitHub
parent cd8d440c86
commit 8f402f29a3
2 changed files with 1 additions and 5 deletions

View File

@ -135,7 +135,7 @@ def internal_source(sr: SegmentRange, mode: ReadMode) -> LogPaths:
raise InternalUnavailableException
def get_internal_url(sr: SegmentRange, seg, file):
return f"cd:/{sr.dongle_id}/{sr.timestamp}/{seg}/{file}.bz2"
return f"cd:/{sr.dongle_id}/{sr.log_id}/{seg}/{file}.bz2"
rlog_paths = [get_internal_url(sr, seg, "rlog") for seg in sr.seg_idxs]
qlog_paths = [get_internal_url(sr, seg, "qlog") for seg in sr.seg_idxs]

View File

@ -260,10 +260,6 @@ class SegmentRange:
def dongle_id(self) -> str:
return self.m.group("dongle_id")
@property
def timestamp(self) -> str:
return self.m.group("timestamp")
@property
def log_id(self) -> str:
return self.m.group("log_id")