mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
migrate to crystal 0.19
* select keyword hangs so Channel.select is used still
This commit is contained in:
parent
d3606831f3
commit
6745ea956f
1 changed files with 3 additions and 3 deletions
|
@ -131,7 +131,7 @@ module DB
|
||||||
timeout.start
|
timeout.start
|
||||||
|
|
||||||
# TODO update to select keyword for crystal 0.19
|
# 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
|
case index
|
||||||
when 0
|
when 0
|
||||||
timeout.cancel
|
timeout.cancel
|
||||||
|
@ -168,8 +168,8 @@ module DB
|
||||||
@timeout_channel = Channel(Nil).new
|
@timeout_channel = Channel(Nil).new
|
||||||
end
|
end
|
||||||
|
|
||||||
def select_action
|
def receive_select_action
|
||||||
@timeout_channel.receive_op
|
@timeout_channel.receive_select_action
|
||||||
end
|
end
|
||||||
|
|
||||||
def start
|
def start
|
||||||
|
|
Loading…
Reference in a new issue