From a4414f27a1076dbf53224c22765c4dc64c5b7bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Wed, 11 Apr 2012 14:53:23 +0200 Subject: Remove old RpcChannel. Fix tests with NewRpcChannel. --- src/main/java/com/orbekk/example/ExampleClient.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/com/orbekk/example') diff --git a/src/main/java/com/orbekk/example/ExampleClient.java b/src/main/java/com/orbekk/example/ExampleClient.java index 3590182..e047ad9 100644 --- a/src/main/java/com/orbekk/example/ExampleClient.java +++ b/src/main/java/com/orbekk/example/ExampleClient.java @@ -19,14 +19,14 @@ import java.util.concurrent.CountDownLatch; import com.google.protobuf.RpcCallback; import com.orbekk.example.Example.FortuneReply; +import com.orbekk.protobuf.NewRpcChannel; import com.orbekk.protobuf.Rpc; -import com.orbekk.protobuf.RpcChannel; public class ExampleClient { public void runClient(int port) { - RpcChannel channel = null; + NewRpcChannel channel = null; try { - channel = RpcChannel.create("localhost", port); + channel = NewRpcChannel.createOrNull("localhost", port); Example.FortuneService service = Example.FortuneService.newStub(channel); printFortune(service); -- cgit v1.2.3