Skip to content

Commit

Permalink
Resolve the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
bluesalt committed Aug 4, 2017
1 parent c12a3c2 commit b1f3ab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.py
Expand Up @@ -41,8 +41,8 @@

class RpcClient(object):
def __init__(self):
channel = grpc.insecure_channel('localhost:50051')
self.stub = helloworld_pb2_grpc.GreeterStub(channel)
self.channel = grpc.insecure_channel('localhost:50051')
self.stub = helloworld_pb2_grpc.GreeterStub(self.channel)

def say_hi(self ):
response = self.stub.SayHello(helloworld_pb2.HelloRequest(name='you'))
Expand Down

0 comments on commit b1f3ab2

Please sign in to comment.