Updated server.cc to match call.cc changes

This commit is contained in:
murgatroid99 2015-02-13 12:21:59 -08:00
parent d64985bc75
commit 928322992c
1 changed files with 2 additions and 2 deletions

View File

@ -224,12 +224,12 @@ NAN_METHOD(Server::RequestCall) {
}
Server *server = ObjectWrap::Unwrap<Server>(args.This());
NewCallOp *op = new NewCallOp();
std::vector<unique_ptr<Op> > *ops = new std::vector<unique_ptr<Op> >();
unique_ptr<OpVec> ops(new OpVec());
ops->push_back(unique_ptr<Op>(op));
grpc_call_error error = grpc_server_request_call(
server->wrapped_server, &op->call, &op->details, &op->request_metadata,
CompletionQueueAsyncWorker::GetQueue(),
new struct tag(new NanCallback(args[0].As<Function>()), ops,
new struct tag(new NanCallback(args[0].As<Function>()), ops.release(),
shared_ptr<Resources>(nullptr)));
if (error != GRPC_CALL_OK) {
return NanThrowError("requestCall failed", error);