Skip to content

Commit

Permalink
docstring and type signature woo
Browse files Browse the repository at this point in the history
  • Loading branch information
exarkun committed Dec 6, 2021
1 parent 0487b6a commit 1959551
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/_zkapauthorizer/_storage_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ def validate_passes(cls, message, passes, signing_key):
)

def observe_error_metrics(self, error_metric):
# type: (Counter) -> None
"""
Record any errors on the given metric object.
"""
num_signature_errors = len(self.signature_check_failed)
if num_signature_errors > 0:
error_metric.labels("signature").inc(1)
Expand Down

0 comments on commit 1959551

Please sign in to comment.