fix(pulsar): fix function return typespec
This commit is contained in:
parent
56b884ab17
commit
b56a158a54
|
@ -137,7 +137,10 @@ on_get_status(_InstanceId, State) ->
|
|||
disconnected
|
||||
end.
|
||||
|
||||
-spec on_query(manager_id(), {send_message, map()}, state()) -> ok | {error, timeout}.
|
||||
-spec on_query(manager_id(), {send_message, map()}, state()) ->
|
||||
{ok, term()}
|
||||
| {error, timeout}
|
||||
| {error, term()}.
|
||||
on_query(_InstanceId, {send_message, Message}, State) ->
|
||||
#{
|
||||
producers := Producers,
|
||||
|
|
Loading…
Reference in New Issue