Skip to content

Commit 2080bc7

Browse files
committed
Fix puma example on_boot notify ready.
1 parent 2d226cb commit 2080bc7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/puma/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def setup(container)
1313
# instance.exec("bundle", "exec", "puma", "-C", "puma.rb", ready: false)
1414

1515
# Manage a child process of puma / puma workers:
16-
pid = ::Process.spawn("puma")
16+
pid = ::Process.spawn("puma", "-C", "puma.rb")
1717

1818
instance.ready!
1919

examples/puma/puma.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
require "async/container/notify"
33

44
notify = Async::Container::Notify.open!
5-
notify.ready!
5+
notify&.ready!
66
end

lib/async/container/notify/console.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
require_relative "client"
77

8-
require "console/logger"
8+
require "console"
99

1010
module Async
1111
module Container

0 commit comments

Comments
 (0)