Skip to content

Commit 87916e3

Browse files
committed
Fixed dialyzer found errors.
1 parent 64ce533 commit 87916e3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/exo_flow.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ new(Key, Policy) ->
136136
%%
137137
%% @end
138138
%%--------------------------------------------------------------------
139-
-spec delete(Key::term()) -> ok | {error, Error::atom()}.
139+
-spec delete(Key::term()) -> true.
140140

141141
delete({Direction, _K} = Key) when Direction =:= in;
142142
Direction =:= out ->
@@ -239,9 +239,9 @@ fill_wait({Direction, _K} = Key, Tokens)
239239
when is_number(Tokens), is_atom(Direction) ->
240240
lager:debug("key = ~p, tokens = ~p", [Key, Tokens]),
241241
case ets:lookup(?BUCKETS, Key) of
242-
[B] when is_record(B, bucket) ->
243-
wait(B, Tokens),
244-
fill(B);
242+
[{Key,B}] when is_record(B, bucket) ->
243+
bucket_wait(B, Tokens),
244+
fill_bucket(B);
245245
[] ->
246246
{error, unkown_key}
247247
end.

src/exo_ssh.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ spawn_channel_proc(Host, Port, RHost, RPort, Options) ->
7171
RHost, RPort,
7272
{127,0,0,1}, 1234,
7373
5000) of
74-
{ok, Ci} ->
74+
{open, Ci} ->
7575
io:format("ssh: ~w connected to port ~w\n",
7676
[Ci, Port]),
7777
Args = [{channel_cb, ?MODULE},

0 commit comments

Comments
 (0)