Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
be clear that we return a fun from read.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Newson committed Mar 11, 2011
1 parent 37d7a27 commit 9f34ae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/monic_file.erl
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ info(Pid, Key, Cookie) ->

read(Pid, Key, Cookie) ->
case gen_server:call(Pid, {read, Key, Cookie}) of
{ok, StreamBody} ->
{ok, StreamBody()};
{ok, StreamBodyFun} ->
{ok, StreamBodyFun()};
Else ->
Else
end.
Expand Down

0 comments on commit 9f34ae7

Please sign in to comment.