From 8c28a4936ada191211984cda0049543630bf269a Mon Sep 17 00:00:00 2001 From: Martin Sumner Date: Tue, 21 Apr 2020 18:55:15 +0100 Subject: [PATCH] Allow pid worker to be checked back in --- src/poolboy.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/poolboy.erl b/src/poolboy.erl index f82a93e..532362c 100644 --- a/src/poolboy.erl +++ b/src/poolboy.erl @@ -56,7 +56,7 @@ checkout(Pool, Block) -> checkout(Pool, Block, Timeout) -> gen_fsm:sync_send_event(Pool, {checkout, Block, Timeout}, Timeout). --spec checkin(Pool :: node(), Worker :: pid()) -> ok. +-spec checkin(Pool :: node() | pid(), Worker :: pid()) -> ok. checkin(Pool, Worker) when is_pid(Worker) -> gen_fsm:send_event(Pool, {checkin, Worker}).