Skip to content

Commit

Permalink
Fix compile error due to bad spec
Browse files Browse the repository at this point in the history
OTP fixed a bug that leads to the bad spec no longer compiling.
Fix is expected to land in OTP-26.0.
  • Loading branch information
essen committed Feb 28, 2023
1 parent d8e4318 commit 6029041
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cow_sse.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6029041

Please sign in to comment.