Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
server: No need to pass signals when signals object present on app
Browse files Browse the repository at this point in the history
Signed-off-by: John Andersen <[email protected]>
  • Loading branch information
pdxjohnny committed Nov 20, 2023
1 parent b2e0978 commit 2637eab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scitt_emulator/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


class SCITTFederation(ABC):
def __init__(self, app, signals: SCITTSignals, config_path: Path):
def __init__(self, app, config_path: Path):
self.app = app
self.asgi_app = app.asgi_app
self.config = {}
Expand Down
2 changes: 1 addition & 1 deletion scitt_emulator/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def create_flask_app(config):
)

for middleware, middleware_config_path in zip(app.config.get("middleware", []), app.config.get("middleware_config_path", [])):
app.asgi_app = middleware(app, app.signals, middleware_config_path)
app.asgi_app = middleware(app, middleware_config_path)

error_rate = app.config["error_rate"]
use_lro = app.config["use_lro"]
Expand Down

0 comments on commit 2637eab

Please sign in to comment.