Skip to content

Commit

Permalink
Merge pull request #29 from SergeTupchiy/fix-type-spec
Browse files Browse the repository at this point in the history
chore: improve grpc_client_sup:stop_channel_pool/1 spec
  • Loading branch information
SergeTupchiy authored Nov 16, 2023
2 parents a22531c + 8870a35 commit e144c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/grpc_client_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ create_channel_pool(Name, URL, Opts) ->
{error, Reason, _} -> {error, Reason}
end.

-spec stop_channel_pool(term()) -> ok.
-spec stop_channel_pool(term()) -> ok | {error, term()}.
stop_channel_pool(Name) ->
case supervisor:terminate_child(?APP_SUP, Name) of
ok ->
Expand Down

0 comments on commit e144c7a

Please sign in to comment.