aboutsummaryrefslogtreecommitdiff
path: root/src/table/gc.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-03-16 11:47:39 +0100
committerAlex Auvolat <alex@adnab.me>2021-03-16 11:47:39 +0100
commit0aad2f2e066b5914ac94bb319e7679e2e7761b2b (patch)
tree81b52a8b8647c0ba0ce44e3ffc554ec46a84b0b2 /src/table/gc.rs
parent515029d026937d29395379c76188f509984b8ace (diff)
downloadgarage-0aad2f2e066b5914ac94bb319e7679e2e7761b2b.tar.gz
garage-0aad2f2e066b5914ac94bb319e7679e2e7761b2b.zip
some reordering
Diffstat (limited to 'src/table/gc.rs')
-rw-r--r--src/table/gc.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/table/gc.rs b/src/table/gc.rs
index d99e3e40..20ebe3c7 100644
--- a/src/table/gc.rs
+++ b/src/table/gc.rs
@@ -25,8 +25,8 @@ const TABLE_GC_BATCH_SIZE: usize = 1024;
const TABLE_GC_RPC_TIMEOUT: Duration = Duration::from_secs(30);
pub struct TableGC<F: TableSchema, R: TableReplication> {
- data: Arc<TableData<F, R>>,
system: Arc<System>,
+ data: Arc<TableData<F, R>>,
rpc_client: Arc<RpcClient<GcRPC>>,
}
@@ -46,16 +46,16 @@ where
R: TableReplication + 'static,
{
pub(crate) fn launch(
- data: Arc<TableData<F, R>>,
system: Arc<System>,
+ data: Arc<TableData<F, R>>,
rpc_server: &mut RpcServer,
) -> Arc<Self> {
let rpc_path = format!("table_{}/gc", data.name);
let rpc_client = system.rpc_client::<GcRPC>(&rpc_path);
let gc = Arc::new(Self {
- data: data.clone(),
system: system.clone(),
+ data: data.clone(),
rpc_client,
});