Skip to content

Commit da02696

Browse files
committed
typo fixes
1 parent e08b942 commit da02696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

host_key_rotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def host_key(timeslot: datetime.datetime) -> int:
1818
key_salt = os.getenv("HOST_KEY_SALT").encode()
1919
timestamp = timeslot.replace(second=0, microsecond=0, minute=0).timestamp()
2020
hashed = hashlib.sha512(int(timestamp).to_bytes(5, "big") + key_salt)
21-
result = f"{int(hashed.hexdigest(), 16) % int(1e6):06}"
21+
return f"{int(hashed.hexdigest(), 16) % int(1e6):06}"
2222

2323

2424
def update_host_key():

0 commit comments

Comments
 (0)