From 60290419820258a1f293549611a7cbdede76e28c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 28 Feb 2023 09:59:44 +0100 Subject: 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. --- src/cow_sse.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3