From e459f1fe7a6ddd9599b41c1201530cf73cab4911 Mon Sep 17 00:00:00 2001 From: Drew Varner Date: Thu, 7 Oct 2021 15:54:21 -0400 Subject: [PATCH] Fix Poolboy start_link params The values passed from the NIF pool supervisor to Poolboy's start_link have the wrong name and are ignored. This patch renames them to the correct names. --- src/bcrypt_nif_pool_sup.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bcrypt_nif_pool_sup.erl b/src/bcrypt_nif_pool_sup.erl index 8286c27..773378d 100644 --- a/src/bcrypt_nif_pool_sup.erl +++ b/src/bcrypt_nif_pool_sup.erl @@ -15,8 +15,8 @@ init([]) -> PoolArgs = [ {name, {local, bcrypt_nif_pool}}, - {nif_pool_size, PoolSize}, - {nif_pool_max_overflow, MaxOverFlow}, + {size, PoolSize}, + {max_overflow, MaxOverFlow}, {worker_module, bcrypt_nif_worker} ],