aboutsummaryrefslogtreecommitdiff
path: root/src/table/table.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-03-12 15:05:26 +0100
committerAlex Auvolat <alex@adnab.me>2021-03-12 15:05:26 +0100
commit8860aa19b867183b83ee48efd9990cd34e567f53 (patch)
tree78ced8785a61aef80292d05f284c6d15c210fb2d /src/table/table.rs
parent1fea257291bdbf447f9918274ebf73848afb3a0c (diff)
downloadgarage-8860aa19b867183b83ee48efd9990cd34e567f53.tar.gz
garage-8860aa19b867183b83ee48efd9990cd34e567f53.zip
Make syncer have its own rpc client/server
Diffstat (limited to 'src/table/table.rs')
-rw-r--r--src/table/table.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/table/table.rs b/src/table/table.rs
index 516c9358..edb1be3f 100644
--- a/src/table/table.rs
+++ b/src/table/table.rs
@@ -24,7 +24,7 @@ const TABLE_RPC_TIMEOUT: Duration = Duration::from_secs(10);
pub struct TableAux<F: TableSchema, R: TableReplication> {
pub system: Arc<System>,
pub replication: R,
- pub(crate) rpc_client: Arc<RpcClient<TableRPC<F>>>,
+ rpc_client: Arc<RpcClient<TableRPC<F>>>,
}
pub struct Table<F: TableSchema, R: TableReplication> {
@@ -76,7 +76,7 @@ where
rpc_client,
});
- let syncer = TableSyncer::launch(data.clone(), aux.clone());
+ let syncer = TableSyncer::launch(data.clone(), aux.clone(), rpc_server);
let table = Arc::new(Self { data, aux, syncer });