From 6745ea956f20f3343c3d09f53b94df11b06d10c2 Mon Sep 17 00:00:00 2001 From: "Brian J. Cardiff" Date: Sun, 4 Sep 2016 20:11:50 -0300 Subject: [PATCH] migrate to crystal 0.19 * select keyword hangs so Channel.select is used still --- src/db/pool.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/db/pool.cr b/src/db/pool.cr index 7c48f48..14bb966 100644 --- a/src/db/pool.cr +++ b/src/db/pool.cr @@ -131,7 +131,7 @@ module DB timeout.start # TODO update to select keyword for crystal 0.19 - index, _ = Channel.select(@availability_channel.receive_op, timeout.select_action) + index, _ = Channel.select(@availability_channel.receive_select_action, timeout.receive_select_action) case index when 0 timeout.cancel @@ -168,8 +168,8 @@ module DB @timeout_channel = Channel(Nil).new end - def select_action - @timeout_channel.receive_op + def receive_select_action + @timeout_channel.receive_select_action end def start