From 923e8197f77bbb49a6a5614c0906108c73ee645c Mon Sep 17 00:00:00 2001 From: Andrew Mayorov Date: Tue, 19 Dec 2023 12:58:44 +0100 Subject: [PATCH] fix(set-opts): fix function typespec --- src/esockd.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/esockd.erl b/src/esockd.erl index ee42d82..4a3e507 100644 --- a/src/esockd.erl +++ b/src/esockd.erl @@ -268,7 +268,7 @@ get_options({Proto, ListenOn}) when is_atom(Proto) -> %% If some options could not be set, either because they are not applicable or %% because they require a listener restart, function returns an error. -spec set_options({atom(), listen_on()}, options()) -> - {ok, options()} | {error, _TODO}. + ok | {error, not_supported | _UpdateErrorReason}. set_options({Proto, ListenOn}, Options) when is_atom(Proto) -> with_listener_ref({Proto, ListenOn}, ?FUNCTION_NAME, [Options]).