Skip to content

Commit

Permalink
Format code with black
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Feb 20, 2024
1 parent 0a0d335 commit d970bfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ariadne/contrib/tracing/apollotracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
def perf_counter_ns() -> int:
return int(perf_counter() * NS_IN_SECOND)


try:
from datetime import UTC, datetime

def utc_now():
return datetime.now(UTC)

except ImportError:
from datetime import datetime

Check warning on line 29 in ariadne/contrib/tracing/apollotracing.py

View check run for this annotation

Codecov / codecov/patch

ariadne/contrib/tracing/apollotracing.py#L28-L29

Added lines #L28 - L29 were not covered by tests

Expand Down

0 comments on commit d970bfb

Please sign in to comment.