Skip to content

Commit cfb06d8

Browse files
committed
fix: compute nonce in milliseconds
1 parent 70cab38 commit cfb06d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/structurizr/api/structurizr_client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,9 @@ def _create_archive_filename(self) -> Path:
276276

277277
@staticmethod
278278
def _number_once() -> str:
279-
"""Return a unique number as a string."""
280-
# The number of microseconds since the epoch.
279+
"""Return the number of milliseconds since the epoch."""
281280
return str(
282-
int((datetime.utcnow() - datetime(1970, 1, 1)) / timedelta(microseconds=1))
281+
int((datetime.utcnow() - datetime(1970, 1, 1)) / timedelta(milliseconds=1))
283282
)
284283

285284
@staticmethod

0 commit comments

Comments
 (0)