1
0
Fork 0
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:
Mike Perham 2012-09-10 20:27:40 -07:00
parent cc3b77f54b
commit c03d857362

View file

@ -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