Skip to content

Commit 75dd5c6

Browse files
committed
TimestampedStore clean up
1 parent f161800 commit 75dd5c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

quixstreams/state/rocksdb/timestamped.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"TimestampedPartitionTransaction",
2525
)
2626

27-
DAYS_7 = 7 * 24 * 60 * 60 * 1000
27+
DAY_MS = 24 * 60 * 60 * 1000
2828

2929
MIN_ELIGIBLE_TIMESTAMPS_CF_NAME = "__min-eligible-timestamps__"
3030
MIN_ELIGIBLE_TIMESTAMPS_KEY = b"__min_eligible_timestamps__"
@@ -128,7 +128,7 @@ def set_for_timestamp(
128128
timestamp: int,
129129
value: Any,
130130
prefix: Any,
131-
retention_ms: int = DAYS_7,
131+
retention_ms: int = 7 * DAY_MS,
132132
) -> None:
133133
"""Set a value for the timestamp.
134134
@@ -143,6 +143,7 @@ def set_for_timestamp(
143143
:param timestamp: Timestamp associated with the value in milliseconds.
144144
:param value: The value to store.
145145
:param prefix: The key prefix.
146+
:param retention_ms: retention for the key in milliseconds
146147
"""
147148
prefix = self._ensure_bytes(prefix)
148149
super().set(timestamp, value, prefix)

0 commit comments

Comments
 (0)