empiredan commented on code in PR #2272:
URL: 
https://github.com/apache/incubator-pegasus/pull/2272#discussion_r2297289137


##########
src/rpc/asio_net_provider.cpp:
##########
@@ -122,17 +123,17 @@ asio_network_provider::~asio_network_provider()
 
 error_code asio_network_provider::start(rpc_channel channel, int port, bool 
client_only)
 {
-    if (_acceptor != nullptr)
+    if (_acceptor != nullptr) {
         return ERR_SERVICE_ALREADY_RUNNING;
+    }
 
-    for (int i = 0; i < FLAGS_io_service_worker_count; i++) {
+    for (auto i = _workers.size(); _workers.size() < 
FLAGS_io_service_worker_count; ++i) {

Review Comment:
   OK. Done.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to