diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-12 22:24:53 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-12 22:24:53 +0200 |
commit | 2bea76ce16c5dfc3ddead65adcd7b0bed2cf9530 (patch) | |
tree | 8aab7a6d9d9849e6ad7962f1286dcd52ed48c916 /src/server.rs | |
parent | 9f8b3b5a1820f575e6621fd5f4f6cdf47b0a7742 (diff) | |
download | garage-2bea76ce16c5dfc3ddead65adcd7b0bed2cf9530.tar.gz garage-2bea76ce16c5dfc3ddead65adcd7b0bed2cf9530.zip |
Small refactorings
Diffstat (limited to 'src/server.rs')
-rw-r--r-- | src/server.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server.rs b/src/server.rs index 0123eb90..8b49f105 100644 --- a/src/server.rs +++ b/src/server.rs @@ -84,7 +84,7 @@ impl Garage { timeout: DEFAULT_TIMEOUT, }; - let block_ref_table = Arc::new(Table::new( + let block_ref_table = Table::new( BlockRefTable { background: background.clone(), block_manager: block_manager.clone(), @@ -93,8 +93,8 @@ impl Garage { &db, "block_ref".to_string(), data_rep_param.clone(), - )); - let version_table = Arc::new(Table::new( + ); + let version_table = Table::new( VersionTable { background: background.clone(), block_ref_table: block_ref_table.clone(), @@ -103,8 +103,8 @@ impl Garage { &db, "version".to_string(), meta_rep_param.clone(), - )); - let object_table = Arc::new(Table::new( + ); + let object_table = Table::new( ObjectTable { background: background.clone(), version_table: version_table.clone(), @@ -113,7 +113,7 @@ impl Garage { &db, "object".to_string(), meta_rep_param.clone(), - )); + ); let mut garage = Self { db, |