You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, for the BenchClient in Xline, we have the following implementation.
/// Benchmark clientpub(crate)structBenchClient{/// Name of the clientname:String,/// etcd clientetcd_client:EtcdClient,/// xline clientxline_client:Client,/// Use xline client to send requests when trueuse_curp_client:bool,}
As you can see, a BenchClient owns two different inner clients, one is EtcdClient while the other is XlineClient. Since both clients are part of a BenchClient, we have to construct them simultaneously. However, this is not an efficient way in that we only need one specific client in any specific bench test. Therefore, we need to refactor this implementation and use an enumeration to wrap these two clients as another data structure.
The text was updated successfully, but these errors were encountered:
Currently, for the
BenchClient
in Xline, we have the following implementation.As you can see, a
BenchClient
owns two different inner clients, one isEtcdClient
while the other isXlineClient
. Since both clients are part of aBenchClient
, we have to construct them simultaneously. However, this is not an efficient way in that we only need one specific client in any specific bench test. Therefore, we need to refactor this implementation and use an enumeration to wrap these two clients as another data structure.The text was updated successfully, but these errors were encountered: