Skip to content

Commit

Permalink
Move spec next to function
Browse files Browse the repository at this point in the history
  • Loading branch information
rzezeski committed Mar 3, 2012
1 parent 38e6643 commit 3d35ace
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/merge_index_backend.erl
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
| eof
| {error, Reason::any()}.

-spec stream_worker(pid(), index(), field(), s_term(), fun(), sender()) ->
any().

% @type state() = term().
-record(state, {partition, pid}).

Expand Down Expand Up @@ -137,6 +134,8 @@ drop(State) ->
%%% Internal Functions
%%%===================================================================

-spec stream_worker(pid(), index(), field(), s_term(), fun(), sender()) ->
any().
stream_worker(Pid, Index, Field, Term, Filter, Sender) ->
Iter = merge_index:lookup(Pid, Index, Field, Term, Filter),
stream_to(Iter(), Sender).
Expand Down

0 comments on commit 3d35ace

Please sign in to comment.