diff options
Diffstat (limited to 'src/cow_sse.erl')
-rw-r--r-- | src/cow_sse.erl | 5 |
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; |