From 8397f4696947628807cb4b6872c7453c480e707a Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Mon, 19 Aug 2019 18:44:21 +0200 Subject: ipa_proto.erl: fix matching return value of ets:new() --- src/ipa_proto.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ipa_proto.erl b/src/ipa_proto.erl index fbe3623..9a3f3d0 100644 --- a/src/ipa_proto.erl +++ b/src/ipa_proto.erl @@ -229,8 +229,8 @@ reply({From, Ref}, Reply) -> % global module initialization init() -> - {ok, ipa_sockets} = ets:new(ipa_sockets, [named_table, set, public, {keypos, #ipa_socket.socket}]), - {ok, ipa_codecs} = ets:new(ipa_codecs, [named_table, set, public, {keypos, #ipa_codec.streamId}]). + ipa_sockets = ets:new(ipa_sockets, [named_table, set, public, {keypos, #ipa_socket.socket}]), + ipa_codecs = ets:new(ipa_codecs, [named_table, set, public, {keypos, #ipa_codec.streamId}]). % initialize a signle socket, create its handle process init_sock(Socket, CallingPid) -> -- cgit v1.2.3