blobrepo_factory: re-export common types from repo_factory

Summary:
To facilitate migration from `blobrepo_factory` to `repo_factory`, make common
types the same by re-exporting them from `repo_factory` in `blobrepo_factory`.

Reviewed By: ahornby

Differential Revision: D27323371

fbshipit-source-id: 9b0d98fe067de7905fc923d173ba8ae24eaa0d75
This commit is contained in:
Mark Juggurnauth-Thomas 2021-04-07 13:59:27 -07:00 committed by Facebook GitHub Bot
parent f902acfcd1
commit 3ef58dda72
2 changed files with 2 additions and 8 deletions

View File

@ -46,6 +46,7 @@ phases = { version = "0.1.0", path = "../../phases" }
readonlyblob = { version = "0.1.0", path = "../../blobstore/readonlyblob" }
redactedblobstore = { version = "0.1.0", path = "../../blobstore/redactedblobstore" }
repo_blobstore = { version = "0.1.0", path = "../repo_blobstore" }
repo_factory = { version = "0.1.0", path = "../../repo_factory" }
scuba_ext = { version = "0.1.0", path = "../../common/scuba_ext" }
segmented_changelog = { version = "0.1.0", path = "../../segmented_changelog" }
skeleton_manifest = { version = "0.1.0", path = "../../derived_data/skeleton_manifest" }

View File

@ -68,14 +68,7 @@ use virtually_sharded_blobstore::VirtuallyShardedBlobstore;
pub use blobstore_factory::{BlobstoreOptions, PutBehaviour, ReadOnlyStorage};
#[derive(Copy, Clone, PartialEq)]
pub enum Caching {
// Usize in Enabled and CachelibOnlyBlobstore represents the number of cache shards. If zero,
// sharding is not used.
Enabled(usize),
CachelibOnlyBlobstore(usize),
Disabled,
}
pub use repo_factory::Caching;
const BLOBSTORE_BLOBS_CACHE_POOL: &str = "blobstore-blobs";
const BLOBSTORE_PRESENCE_CACHE_POOL: &str = "blobstore-presence";