1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Fixed whitespace

This commit is contained in:
Daniel Shelton 2014-08-01 11:28:33 +01:00
parent e4ea4fb46d
commit b32f32753d
3 changed files with 5 additions and 6 deletions

View file

@ -99,7 +99,7 @@ module Puma
:binds => [], :binds => [],
:workers => 0, :workers => 0,
:daemon => false, :daemon => false,
:before_worker_shutdown => [], :before_worker_shutdown => [],
:before_worker_boot => [], :before_worker_boot => [],
:after_worker_boot => [] :after_worker_boot => []
} }

View file

@ -217,10 +217,9 @@ module Puma
server.run.join server.run.join
# Invoke any worker shutdown hooks so they can prevent the worker # Invoke any worker shutdown hooks so they can prevent the worker
# exiting until any background operations are completed # exiting until any background operations are completed
hooks = @options[:before_worker_shutdown] hooks = @options[:before_worker_shutdown]
hooks.each { |h| h.call(index) } hooks.each { |h| h.call(index) }
ensure ensure
@worker_write.close @worker_write.close
end end

View file

@ -303,9 +303,9 @@ module Puma
end end
# *Cluster mode only* Code to run immediately before a worker shuts # *Cluster mode only* Code to run immediately before a worker shuts
# down (after it has finished processing HTTP requests). These hooks # down (after it has finished processing HTTP requests). These hooks
# can block if necessary to wait for background operations unknown # can block if necessary to wait for background operations unknown
# to puma to finish before the process terminates. # to puma to finish before the process terminates.
# #
# This can be called multiple times to add hooks. # This can be called multiple times to add hooks.
# #