From 9a82654b89e398cb613f6fea1d25f08ba73fe879 Mon Sep 17 00:00:00 2001 From: Dmitry Korunov Date: Fri, 21 Apr 2023 16:55:10 +0400 Subject: [PATCH] Fix the pool_timeout param usage --- lib/instream/writer/udp.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/instream/writer/udp.ex b/lib/instream/writer/udp.ex index 35e46ae0..5e73a255 100644 --- a/lib/instream/writer/udp.ex +++ b/lib/instream/writer/udp.ex @@ -58,7 +58,7 @@ defmodule Instream.Writer.UDP do pool_name = Module.concat(conn, UDPWriterPool) pool_timeout = opts[:pool_timeout] || default_pool_timeout - worker = :poolboy.checkout(pool_name, pool_timeout) + worker = :poolboy.checkout(pool_name, true, pool_timeout) :ok = if opts[:async] do