Permalink
Browse files

pass correct method name to msgpack rpc client

  • Loading branch information...
1 parent c7de49f commit ece2ccdbac94fab3a59753a7af98ab0d990494d9 @bakkdoor committed Apr 10, 2012
Showing with 12 additions and 3 deletions.
  1. +12 −3 lib/msgpack.fy
View
@@ -16,13 +16,22 @@ class MessagePack RPC Client {
class ClientProxy : Fancy BasicObject {
def initialize: @client
def send_future: m with_params: p {
- @client call_async_apply(m, p)
+ match p size {
+ case 0 -> @client call_async_apply(m to_s[[1,-1]], p)
+ case _ -> @client call_async_apply(m to_s, p)
+ }
}
def send_async: m with_params: p {
- @client notify_apply(m, p)
+ match p size {
+ case 0 -> @client notify_apply(m to_s[[1,-1]], p)
+ case _ -> @client notify_apply(m, p)
+ }
}
def unknown_message: m with_params: p {
- @client call_apply(m, p)
+ match p size {
+ case 0 -> @client call_apply(m to_s[[1,-1]], p)
+ case _ -> @client call_apply(m to_s, p)
+ }
}
}

0 comments on commit ece2ccd

Please sign in to comment.