Write bench-tps in terms of client (#3904)

* Write bench-tps in terms of client

* Add transactions_addr method for logging

* Move cluster config outside do_bench_tps

* Add BankClient test
This commit is contained in:
Tyera Eulberg
2019-04-19 15:04:36 -06:00
committed by GitHub
parent afb00432d4
commit e0acd48944
8 changed files with 223 additions and 101 deletions

View File

@@ -168,7 +168,11 @@ impl ThinClient {
}
}
impl Client for ThinClient {}
impl Client for ThinClient {
fn transactions_addr(&self) -> String {
self.transactions_addr.to_string()
}
}
impl SyncClient for ThinClient {
fn send_message(&self, keypairs: &[&Keypair], message: Message) -> TransportResult<Signature> {