yang-g 10 жил өмнө
parent
commit
523201cee0

+ 1 - 1
src/cpp/server/server.cc

@@ -286,7 +286,7 @@ bool Server::Start() {
   if (!has_generic_service_) {
   if (!has_generic_service_) {
     unknown_method_.reset(new RpcServiceMethod(
     unknown_method_.reset(new RpcServiceMethod(
         "unknown", RpcMethod::BIDI_STREAMING, new UnknownMethodHandler));
         "unknown", RpcMethod::BIDI_STREAMING, new UnknownMethodHandler));
-    sync_methods_->emplace_back(SyncRequest(unknown_method_.get(), nullptr));
+    sync_methods_->emplace_back(unknown_method_.get(), nullptr);
   }
   }
   // Start processing rpcs.
   // Start processing rpcs.
   if (!sync_methods_->empty()) {
   if (!sync_methods_->empty()) {