migrate to crystal 0.19

* select keyword hangs so Channel.select is used still
This commit is contained in:
Brian J. Cardiff 2016-09-04 20:11:50 -03:00
parent d3606831f3
commit 6745ea956f

View file

@ -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