Skip to content

Commit

Permalink
change proxied_bytes to get_proxied_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Mar 5, 2012
1 parent df92251 commit 1f7bde8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/em/connection.rb
Expand Up @@ -240,8 +240,8 @@ def stop_proxying

# The number of bytes proxied to another connection. Reset to zero when
# EventMachine::Connection#proxy_incoming_to is called, and incremented whenever data is proxied.
def proxied_bytes
EventMachine::get_proxied_bytes(self.signature)
def get_proxied_bytes
EventMachine::get_proxied_bytes(@signature)
end

# EventMachine::Connection#close_connection is called only by user code, and never
Expand Down
2 changes: 1 addition & 1 deletion tests/test_proxy_connection.rb
Expand Up @@ -24,7 +24,7 @@ def proxy_target_unbound
end

def unbind
$proxied_bytes = proxied_bytes
$proxied_bytes = self.get_proxied_bytes
@client.close_connection_after_writing
end
end
Expand Down

0 comments on commit 1f7bde8

Please sign in to comment.