Skip to content

Enhancement: Detailed nonce information in-case of failures#2050

Merged
ibraheem-abe merged 5 commits intostagingfrom
enhance/abe/nonces
Jun 21, 2024
Merged

Enhancement: Detailed nonce information in-case of failures#2050
ibraheem-abe merged 5 commits intostagingfrom
enhance/abe/nonces

Conversation

@ibraheem-abe
Copy link
Contributor

  • Increases level of information logged in-case nonces fail.
  • Differentiates between different nonce failure scenarios and logsaccordingly.
  • Ensures synapse timeout is calculated in ns

and synapse.dendrite.nonce <= allowed_window_ns
):
raise Exception("Nonce is too old")
diff_seconds = (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move this to a helper method so we can get coverage on it?

@ibraheem-abe ibraheem-abe merged commit b9d3b44 into staging Jun 21, 2024
@ibraheem-abe ibraheem-abe deleted the enhance/abe/nonces branch June 21, 2024 17:15
@ibraheem-abe ibraheem-abe mentioned this pull request Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants