Skip to content

Commit 8c28a49

Browse files
committed
Allow pid worker to be checked back in
1 parent fb8705f commit 8c28a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/poolboy.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ checkout(Pool, Block) ->
5656
checkout(Pool, Block, Timeout) ->
5757
gen_fsm:sync_send_event(Pool, {checkout, Block, Timeout}, Timeout).
5858

59-
-spec checkin(Pool :: node(), Worker :: pid()) -> ok.
59+
-spec checkin(Pool :: node() | pid(), Worker :: pid()) -> ok.
6060
checkin(Pool, Worker) when is_pid(Worker) ->
6161
gen_fsm:send_event(Pool, {checkin, Worker}).
6262

0 commit comments

Comments
 (0)