We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5a0600 commit a659145Copy full SHA for a659145
1 file changed
lib/leopard/nats_api_server.rb
@@ -76,7 +76,8 @@ def use(klass, *args, &block)
76
def run(nats_url:, service_opts:, instances: 1, blocking: true)
77
logger.info 'Booting NATS API server...'
78
# Return the thread pool if non-blocking
79
- return spawn_instances(nats_url, service_opts, instances) unless blocking
+ pool = spawn_instances(nats_url, service_opts, instances)
80
+ return pool unless blocking
81
82
# Otherwise, just sleep the main thread forever
83
sleep
0 commit comments