mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Use Socket.gethostname, #393
This commit is contained in:
parent
cc3b77f54b
commit
c03d857362
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
require 'socket'
|
||||
require 'celluloid'
|
||||
require 'sidekiq/util'
|
||||
|
||||
|
@ -105,7 +106,7 @@ module Sidekiq
|
|||
end
|
||||
|
||||
def hostname
|
||||
@h ||= `hostname`.strip
|
||||
@h ||= Socket.gethostname
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue