Use a separate fiber to send pool stats
As the requester might timeout.
This commit is contained in:
parent
957727c51a
commit
f4be647610
1 changed files with 9 additions and 7 deletions
|
|
@ -244,13 +244,15 @@
|
|||
(waiters . ,(length waiters))
|
||||
(checkout-failure-count . ,checkout-failure-count))))
|
||||
|
||||
(spawn-fiber
|
||||
(lambda ()
|
||||
(perform-operation
|
||||
(choice-operation
|
||||
(wrap-operation
|
||||
(put-operation reply stats)
|
||||
(const #t))
|
||||
(wrap-operation (sleep-operation 0.2)
|
||||
(const #f)))))
|
||||
(wrap-operation (sleep-operation 1)
|
||||
(const #f)))))))
|
||||
|
||||
(loop resources
|
||||
available
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue