From c12289fd1b56d8e872c9070ace138c46f8796e6b Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Fri, 6 Aug 2021 13:07:50 -0500 Subject: [PATCH] remove AccountsDb::new() from public api (#19098) --- runtime/src/accounts_db.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 5d1f1fc187..10e396126c 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -1407,7 +1407,8 @@ impl AccountsDb { } } - pub fn new(paths: Vec, cluster_type: &ClusterType) -> Self { + pub fn new_for_tests(paths: Vec, cluster_type: &ClusterType) -> Self { + // will diverge AccountsDb::new_with_config( paths, cluster_type, @@ -1417,11 +1418,6 @@ impl AccountsDb { ) } - pub fn new_for_tests(paths: Vec, cluster_type: &ClusterType) -> Self { - // will diverge - Self::new(paths, cluster_type) - } - pub fn new_with_config( paths: Vec, cluster_type: &ClusterType, @@ -6186,6 +6182,10 @@ impl AccountsDb { #[cfg(test)] impl AccountsDb { + pub fn new(paths: Vec, cluster_type: &ClusterType) -> Self { + Self::new_for_tests(paths, cluster_type) + } + pub fn new_sized(paths: Vec, file_size: u64) -> Self { AccountsDb { file_size,