aboutsummaryrefslogtreecommitdiff
path: root/src/table/table.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/table/table.rs')
-rw-r--r--src/table/table.rs12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/table/table.rs b/src/table/table.rs
index e1357471..396888c1 100644
--- a/src/table/table.rs
+++ b/src/table/table.rs
@@ -55,18 +55,12 @@ where
{
// =============== PUBLIC INTERFACE FUNCTIONS (new, insert, get, etc) ===============
- pub fn new(
- instance: F,
- replication: R,
- system: Arc<System>,
- db: &sled::Db,
- name: String,
- ) -> Arc<Self> {
+ pub fn new(instance: F, replication: R, system: Arc<System>, db: &sled::Db) -> Arc<Self> {
let endpoint = system
.netapp
- .endpoint(format!("garage_table/table.rs/Rpc:{}", name));
+ .endpoint(format!("garage_table/table.rs/Rpc:{}", F::TABLE_NAME));
- let data = TableData::new(system.clone(), name, instance, replication, db);
+ let data = TableData::new(system.clone(), instance, replication, db);
let merkle_updater = MerkleUpdater::launch(&system.background, data.clone());