Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Forwarding logic cleanup

  • Loading branch information...
commit 47d8d12bb02ab66b3f55744c480225bed38450ff 1 parent 9e72b61
Nick Sieger nicksieger authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/klomp/client.rb
3  lib/klomp/client.rb
View
@@ -109,13 +109,12 @@ def log
READ_ONLY_METHODS = [
:ack,
:nack,
- :unsubscribe,
]
def method_missing(method, *args, &block)
case method
when *WRITE_ONLY_METHODS
- @write_conn.send(method, *args, &block)
+ @write_conn.__send__(method, *args, &block)
when *READ_ONLY_METHODS
@read_conn.map {|c| c.__send__(method, *args, &block) }
else
Please sign in to comment.
Something went wrong with that request. Please try again.