SON connection pool.
This commit is contained in:
parent
6e0064aefe
commit
16431b3be5
2 changed files with 6 additions and 0 deletions
|
|
@ -65,6 +65,7 @@ private:
|
||||||
void hive_listener_loop();
|
void hive_listener_loop();
|
||||||
void handle_event(const std::string &event_data);
|
void handle_event(const std::string &event_data);
|
||||||
hive_rpc_client *get_active_rpc_client();
|
hive_rpc_client *get_active_rpc_client();
|
||||||
|
void select_active_rpc_client();
|
||||||
};
|
};
|
||||||
|
|
||||||
}} // namespace graphene::peerplays_sidechain
|
}} // namespace graphene::peerplays_sidechain
|
||||||
|
|
|
||||||
|
|
@ -964,4 +964,9 @@ hive_rpc_client *sidechain_net_handler_hive::get_active_rpc_client()
|
||||||
return rpc_clients[n_active_rpc_client];
|
return rpc_clients[n_active_rpc_client];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void sidechain_net_handler_hive::select_active_rpc_client()
|
||||||
|
{
|
||||||
|
n_active_rpc_client = 0;
|
||||||
|
}
|
||||||
|
|
||||||
}} // namespace graphene::peerplays_sidechain
|
}} // namespace graphene::peerplays_sidechain
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue