Skip to content

Commit

Permalink
Add a typespec for logplex_channel:lookup_flags().
Browse files Browse the repository at this point in the history
  • Loading branch information
archaelus committed Jul 17, 2012
1 parent a86539c commit 6067c8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/logplex_channel.erl
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ lookup_flag(Flag, ChannelId) when Flag =:= no_tail;
not_found
end.

-spec lookup_flags(id()) -> flags() | 'not_found'.
lookup_flags(ChannelId) when is_integer(ChannelId) ->
try ets:lookup_element(channels, ChannelId, #channel.flags)
catch
Expand Down

0 comments on commit 6067c8c

Please sign in to comment.