Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pass correct method name to msgpack rpc client

  • Loading branch information...
commit ece2ccdbac94fab3a59753a7af98ab0d990494d9 1 parent c7de49f
@bakkdoor authored
Showing with 12 additions and 3 deletions.
  1. +12 −3 lib/msgpack.fy
View
15 lib/msgpack.fy
@@ -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)
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.