Skip to content

Commit

Permalink
make pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Dec 9, 2023
1 parent 7738981 commit 579deaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sanic_ext/extensions/injection/injector.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@

from .registry import ConstantRegistry, InjectionRegistry, SignatureRegistry


PRIORITY = 1_000_000


def add_injection(
app: Sanic,
injection_registry: InjectionRegistry,
Expand All @@ -22,7 +24,7 @@ def add_injection(
app, injection_registry, constant_registry
)

@app.listener("before_server_start", priority=PRIORITY-1)
@app.listener("before_server_start", priority=PRIORITY - 1)
async def finalize_injections(app: Sanic, _):
router_converters = set(
allowed[0] for allowed in app.router.regex_types.values()
Expand Down

0 comments on commit 579deaa

Please sign in to comment.