Skip to content

Commit

Permalink
FIX: private method should not be invoked on self
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Nov 30, 2018
1 parent c7fa9a8 commit 93f56d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
@@ -1,5 +1,11 @@
30-11-2018

- Version 2.2.0.pre.1

- FIX: diagnostics stopped working cause a private method was invoked on self

30-11-2018

- Version 2.2.0.pre

- FIX: In redis backend we now expire the key used to track channel id this can cause a redis key leak
Expand Down
4 changes: 2 additions & 2 deletions lib/message_bus/diagnostics.rb
Expand Up @@ -8,7 +8,7 @@ class << self
def enable(bus = MessageBus)
full_path = full_process_path
start_time = Time.now.to_f
hostname = self.hostname
hostname = get_hostname

# it may make sense to add a channel per machine/host to streamline
# process to process comms
Expand Down Expand Up @@ -51,7 +51,7 @@ def full_process_path
end
end

def hostname
def get_hostname
begin
`hostname`.strip
rescue
Expand Down
2 changes: 1 addition & 1 deletion lib/message_bus/version.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module MessageBus
VERSION = "2.2.0.pre"
VERSION = "2.2.0.pre.1"
end

0 comments on commit 93f56d9

Please sign in to comment.