Fix listing resource pool resources
This commit is contained in:
parent
8100d36aa5
commit
9c123bbfa9
1 changed files with 4 additions and 2 deletions
|
|
@ -391,7 +391,7 @@
|
||||||
(('list-resources reply)
|
(('list-resources reply)
|
||||||
(spawn-fiber
|
(spawn-fiber
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(put-message reply (list-copy resources))))
|
(put-message reply (vector->list resources))))
|
||||||
|
|
||||||
(loop available
|
(loop available
|
||||||
waiters))
|
waiters))
|
||||||
|
|
@ -967,7 +967,9 @@
|
||||||
(('list-resources reply)
|
(('list-resources reply)
|
||||||
(spawn-fiber
|
(spawn-fiber
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(put-message reply (list-copy resources))))
|
(put-message reply (hash-map->list
|
||||||
|
(lambda (_ value) value)
|
||||||
|
resources))))
|
||||||
|
|
||||||
(loop next-resource-id
|
(loop next-resource-id
|
||||||
available
|
available
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue