Skip to content

Commit

Permalink
Merge pull request #48 from tsloughter/channel-start-link
Browse files Browse the repository at this point in the history
fix channel start_link type spec to include ignore/error
  • Loading branch information
tsloughter committed Feb 8, 2021
2 parents e2394c2 + 9e3337b commit 22d7a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grpcbox_channel.erl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
stats_handler :: module() | undefined,
refresh_interval :: timer:time()}).

-spec start_link(name(), [endpoint()], options()) -> {ok, pid()}.
-spec start_link(name(), [endpoint()], options()) -> {ok, pid()} | ignore | {error, term()}.
start_link(Name, Endpoints, Options) ->
gen_statem:start_link(?CHANNEL(Name), ?MODULE, [Name, Endpoints, Options], []).

Expand Down

0 comments on commit 22d7a09

Please sign in to comment.