Skip to content

Commit

Permalink
Merge pull request #2544 from opentensor/fix/thewhaleking/optional-args
Browse files Browse the repository at this point in the history
optional arg fix
  • Loading branch information
thewhaleking authored Dec 16, 2024
2 parents daf1065 + 5017daf commit 242372e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bittensor/utils/axon_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
NANOSECONDS_IN_SECOND = 1_000_000_000


def allowed_nonce_window_ns(current_time_ns: int, synapse_timeout: Optional[float]):
def allowed_nonce_window_ns(
current_time_ns: int, synapse_timeout: Optional[float] = None
) -> int:
"""
Calculates the allowed window for a nonce in nanoseconds.
Expand Down

0 comments on commit 242372e

Please sign in to comment.