Skip to content

Commit b0d84cb

Browse files
committed
Remove fiber creation from health check.
1 parent 466b8cd commit b0d84cb

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/async/service/managed/health_checker.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ def health_checker(instance, timeout = @evaluator.health_check_timeout, parent:
2626
yield(instance)
2727
end
2828

29-
# We deliberately create a fiber here, to confirm that fiber creation is working.
30-
# If something has gone wrong with fiber allocation, we will crash here, and that's okay.
31-
Fiber.new do
32-
instance.healthy!
33-
end.resume
29+
instance.healthy!
3430

3531
sleep(timeout / 2.0)
3632
end

0 commit comments

Comments
 (0)