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

@ -16,7 +16,9 @@ use crate::transaction;
use crate::transport::Result;
use std::io;
pub trait Client: SyncClient + AsyncClient {}
pub trait Client: SyncClient + AsyncClient {
fn transactions_addr(&self) -> String;
}
pub trait SyncClient {
/// Create a transaction from the given message, and send it to the