package org.msgpack.rpc.client;

public class Client extends Session {
	protected EventLoop loop;
	
	public Client(String host, int port, EventLoop loop) {
		super(new Address(host, port), loop);
		this.loop = loop;
	}
	
	public Object call(String method, Object... args) throws Exception {
		Future f = sendRequest(method, args);
		f.join();
		return f.getResult();
	}

	public Future send(String method, Object... args) throws Exception {
		return sendRequest(method, args);
	}
	
	public void close() {
		super.tryClose();
	}
}

@@ -68,37 +68,8 @@
 n %7B%0A
-%09protected EventLoop loop;%0A%09%0A
 %09pub
@@ -164,28 +164,8 @@
 p);%0A
-%09%09this.loop = loop;%0A
 %09%7D%0A%09

remove unused member variable loop from Client class