aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2023-02-28 09:59:44 +0100
committerLoïc Hoguin <[email protected]>2023-02-28 10:00:39 +0100
commit60290419820258a1f293549611a7cbdede76e28c (patch)
treee18cffad240033fd8b71d73703ceca641f8dd74e
parentd8e4318300cb9bbf7a2189686b0698392467ba91 (diff)
downloadcowlib-60290419820258a1f293549611a7cbdede76e28c.tar.gz
cowlib-60290419820258a1f293549611a7cbdede76e28c.tar.bz2
cowlib-60290419820258a1f293549611a7cbdede76e28c.zip
Fix compile error due to bad spec
OTP fixed a bug that leads to the bad spec no longer compiling. Fix is expected to land in OTP-26.0.
-rw-r--r--src/cow_sse.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cow_sse.erl b/src/cow_sse.erl
index 1d7ebd6..6e7081f 100644
--- a/src/cow_sse.erl
+++ b/src/cow_sse.erl
@@ -52,8 +52,9 @@ init() ->
%% @todo Add a function to retrieve the retry value from the state.
--spec parse(binary(), state())
- -> {event, parsed_event(), State} | {more, State}.
+-spec parse(binary(), State)
+ -> {event, parsed_event(), State} | {more, State}
+ when State::state().
parse(Data0, State=#state{state_name=bom, buffer=Buffer}) ->
Data1 = case Buffer of
<<>> -> Data0;