From 29d021317ac9d18d4399230a7bbca4063c62a938 Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Sat, 8 Jun 2024 19:41:59 +0100 Subject: [PATCH] Fix issues following previous (more restricting) static analysis --- src/elli_example_callback.erl | 2 +- src/elli_middleware.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/elli_example_callback.erl b/src/elli_example_callback.erl index 7eda4b8..355d1ed 100644 --- a/src/elli_example_callback.erl +++ b/src/elli_example_callback.erl @@ -297,7 +297,7 @@ chunk_loop(Ref, N) -> %% `file_error' is sent when the user wants to return a file as a %% response, but for some reason it cannot be opened. -spec handle_event(Event, Args, Config) -> ok when - Event :: elli:event(), + Event :: elli_handler:event(), Args :: elli_handler:callback_args(), Config :: [tuple()]. handle_event(elli_startup, [], _) -> ok; diff --git a/src/elli_middleware.erl b/src/elli_middleware.erl index 4a9cbae..3eaadca 100644 --- a/src/elli_middleware.erl +++ b/src/elli_middleware.erl @@ -86,7 +86,7 @@ handle_event(Event, Args, Config) -> -spec do_init(Req, Callbacks) -> {ok, standard | handover} when Req :: elli:req(), - Callbacks :: elli_handler:callbacks(). + Callbacks :: [elli_handler:callback()]. do_init(_, []) -> {ok, standard}; do_init(Req, [{Mod, Args}|Mods]) ->