Skip to content

Commit ea6c777

Browse files
Prashant Palmeta-codesync[bot]
authored andcommitted
Thread repo_config through bookmark cache factory methods
Summary: Pass ArcRepoConfig through warm_bookmarks_cache, scoped_bookmarks_cache, and build_bookmarks_cache_impl so that downstream changes can make per-repo decisions about cache kind. Pure refactor — no behavior change. ---- Please refer: https://pxl.cl/9khFh Reviewed By: RajivTS Differential Revision: D99816680 fbshipit-source-id: 46fc47fda9acfe8b5c0c9b19fc823d6b44e5ddae
1 parent 056ea45 commit ea6c777

File tree

1 file changed

+5
-0
lines changed
  • eden/mononoke/repo_factory/src

1 file changed

+5
-0
lines changed

eden/mononoke/repo_factory/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,6 +1721,7 @@ impl RepoFactory {
17211721
repo_derived_data: &ArcRepoDerivedData,
17221722
repo_event_publisher: &ArcRepoEventPublisher,
17231723
phases: &ArcPhases,
1724+
repo_config: &ArcRepoConfig,
17241725
) -> Result<ArcBookmarksCache> {
17251726
let cache = self
17261727
.build_bookmarks_cache_impl(
@@ -1730,6 +1731,7 @@ impl RepoFactory {
17301731
repo_derived_data,
17311732
repo_event_publisher,
17321733
phases,
1734+
repo_config,
17331735
)
17341736
.await?;
17351737
Ok(cache as ArcBookmarksCache)
@@ -1743,6 +1745,7 @@ impl RepoFactory {
17431745
repo_derived_data: &ArcRepoDerivedData,
17441746
repo_event_publisher: &ArcRepoEventPublisher,
17451747
phases: &ArcPhases,
1748+
_repo_config: &ArcRepoConfig,
17461749
) -> Result<Arc<dyn CombinedBookmarksCache + Send + Sync>> {
17471750
let warmer_requirement: WarmerRequirement =
17481751
(&self.env.bookmark_cache_options.derived_data).into();
@@ -1845,6 +1848,7 @@ impl RepoFactory {
18451848
repo_derived_data: &ArcRepoDerivedData,
18461849
repo_event_publisher: &ArcRepoEventPublisher,
18471850
phases: &ArcPhases,
1851+
repo_config: &ArcRepoConfig,
18481852
) -> Result<ArcScopedBookmarksCache> {
18491853
let cache = self
18501854
.build_bookmarks_cache_impl(
@@ -1854,6 +1858,7 @@ impl RepoFactory {
18541858
repo_derived_data,
18551859
repo_event_publisher,
18561860
phases,
1861+
repo_config,
18571862
)
18581863
.await?;
18591864
Ok(cache as ArcScopedBookmarksCache)

0 commit comments

Comments
 (0)