Ejemplo n.º 1
0
 def __init__(self, host='0.0.0.0', port=PORT):
     self.channel = grpc.insecure_channel('%s:%d' % (host, port))
     self.stub = datastore_pb2.DatastoreStub(self.channel)
     self.db = rocksdb.DB("hw2_follower.db",
                          rocksdb.Options(create_if_missing=True))
 def __init__(self, host='0.0.0.0', port=PORT):
     self.channel = grpc.insecure_channel('%s:%d' % (host, port))
     self.stub = datastore_pb2.DatastoreStub(self.channel)