Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Fix missing create_ets_table function.
Browse files Browse the repository at this point in the history
  • Loading branch information
archaelus committed May 6, 2013
1 parent 026fbf0 commit dbd7ebd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/logplex_channel.erl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ name(#channel{id=Name}) -> Name.
flags(#channel{flags=Flags}) -> Flags.
tokens(#channel{tokens=Tokens}) -> Tokens.

create_ets_table() ->
ets:new(channels, [named_table, public, set, {keypos, 2}]).

register({channel, ChannelId} = C)
when is_integer(ChannelId) ->
put(logplex_channel_id, ChannelId), %% post mortem debug info
Expand Down

0 comments on commit dbd7ebd

Please sign in to comment.