Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/leopard/nats_api_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def use(klass, *args, &block)
def run(nats_url:, service_opts:, instances: 1, blocking: true)
logger.info 'Booting NATS API server...'
# Return the thread pool if non-blocking
return spawn_instances(nats_url, service_opts, instances) unless blocking
pool = spawn_instances(nats_url, service_opts, instances)
return pool unless blocking

# Otherwise, just sleep the main thread forever
sleep
Expand Down