Skip to content

Commit

Permalink
Merge pull request #79 from flaviogrossi/fix_syn_pg_join_spec
Browse files Browse the repository at this point in the history
fix syn_pg:join/4 spec by adding the error type
  • Loading branch information
ostinelli authored Aug 23, 2024
2 parents 54e6638 + baff1f7 commit 4f63eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/syn_pg.erl
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ is_local_member(Scope, GroupName, Pid) ->
end
end.

-spec join(Scope :: atom(), GroupName :: term(), Pid :: pid(), Meta :: term()) -> ok.
-spec join(Scope :: atom(), GroupName :: term(), Pid :: pid(), Meta :: term()) -> ok | {error, Reason :: term()}.
join(Scope, GroupName, Pid, Meta) ->
case join_or_update(Scope, GroupName, Pid, Meta) of
{ok, _} -> ok;
Expand Down

0 comments on commit 4f63eca

Please sign in to comment.