@@ -61,7 +61,7 @@ void MPCInitializer::init(std::string const& _configPath)
6161 auto threadPool = std::make_shared<bcos::ThreadPool>(" mpc-pool" , threadPoolSize);
6262
6363 INIT_LOG (INFO) << LOG_DESC (" init the mpc threadpool" )
64- << LOG_KV (" threadPoolSize" , threadPoolSize);
64+ << LOG_KV (" threadPoolSize" , threadPoolSize);
6565
6666 auto mpcService = std::make_shared<MPCService>();
6767 mpcService->setMPCConfig (mpcConfig);
@@ -71,11 +71,11 @@ void MPCInitializer::init(std::string const& _configPath)
7171 m_rpc->registerHandler (" run" , std::bind (&MPCService::runMpcRpc, mpcService,
7272 std::placeholders::_1, std::placeholders::_2));
7373 m_rpc->registerHandler (" asyncRun" , std::bind (&MPCService::asyncRunMpcRpc, mpcService,
74- std::placeholders::_1, std::placeholders::_2));
74+ std::placeholders::_1, std::placeholders::_2));
7575 m_rpc->registerHandler (" kill" , std::bind (&MPCService::killMpcRpc, mpcService,
7676 std::placeholders::_1, std::placeholders::_2));
7777 m_rpc->registerHandler (" query" , std::bind (&MPCService::queryMpcRpc, mpcService,
78- std::placeholders::_1, std::placeholders::_2));
78+ std::placeholders::_1, std::placeholders::_2));
7979 INIT_LOG (INFO) << LOG_DESC (" init the mpc rpc success" );
8080 // init the transport
8181 initTransport (pt);
@@ -89,8 +89,8 @@ void MPCInitializer::initTransport(boost::property_tree::ptree const& property)
8989
9090 // add the service meta
9191 ServiceConfigBuilder serviceConfigBuilder;
92- auto entryPoint =
93- serviceConfigBuilder. buildEntryPoint ( MPC_SERVICE_TYPE, m_config->accessEntrypoint ());
92+ auto entryPoint = serviceConfigBuilder. buildEntryPoint (
93+ getServiceName (m_config-> agencyID (), MPC_SERVICE_TYPE) , m_config->accessEntrypoint ());
9494 auto serviceConfig = serviceConfigBuilder.buildServiceConfig ();
9595 serviceConfig.addEntryPoint (entryPoint);
9696 auto serviceMeta = serviceConfig.encode ();
0 commit comments