mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Fixed whitespace
This commit is contained in:
parent
e4ea4fb46d
commit
b32f32753d
3 changed files with 5 additions and 6 deletions
|
@ -99,7 +99,7 @@ module Puma
|
|||
:binds => [],
|
||||
:workers => 0,
|
||||
:daemon => false,
|
||||
:before_worker_shutdown => [],
|
||||
:before_worker_shutdown => [],
|
||||
:before_worker_boot => [],
|
||||
:after_worker_boot => []
|
||||
}
|
||||
|
|
|
@ -217,10 +217,9 @@ module Puma
|
|||
server.run.join
|
||||
|
||||
# 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.each { |h| h.call(index) }
|
||||
|
||||
ensure
|
||||
@worker_write.close
|
||||
end
|
||||
|
|
|
@ -303,9 +303,9 @@ module Puma
|
|||
end
|
||||
|
||||
# *Cluster mode only* Code to run immediately before a worker shuts
|
||||
# down (after it has finished processing HTTP requests). These hooks
|
||||
# can block if necessary to wait for background operations unknown
|
||||
# to puma to finish before the process terminates.
|
||||
# down (after it has finished processing HTTP requests). These hooks
|
||||
# can block if necessary to wait for background operations unknown
|
||||
# to puma to finish before the process terminates.
|
||||
#
|
||||
# This can be called multiple times to add hooks.
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue