mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
mononoke: change error of log messages
Summary: Previously we could have "Started ..." before "Starting ..." This diff fixes it. Reviewed By: krallin Differential Revision: D20277406 fbshipit-source-id: 3c2f3fa1723c2e0852c6b114592ab7ad90be17ff
This commit is contained in:
parent
0ae16d2266
commit
b905d1399c
@ -102,6 +102,7 @@ impl WarmBookmarksCache {
|
||||
let warm_cs_ids = Arc::new(RwLock::new(HashSet::new()));
|
||||
|
||||
async move {
|
||||
info!(ctx.logger(), "Starting warm bookmark cache updater");
|
||||
let bookmarks = init_bookmarks(&ctx, &repo, &warmers).await?;
|
||||
let bookmarks = Arc::new(RwLock::new(bookmarks));
|
||||
|
||||
@ -113,7 +114,6 @@ impl WarmBookmarksCache {
|
||||
warmers.clone(),
|
||||
warm_cs_ids.clone(),
|
||||
);
|
||||
info!(ctx.logger(), "Started warm bookmark cache updater");
|
||||
Ok(Self {
|
||||
bookmarks,
|
||||
terminate: Some(sender),
|
||||
@ -268,7 +268,7 @@ fn spawn_bookmarks_updater(
|
||||
) {
|
||||
// ignore JoinHandle, because we want it to run until `terminate` receives a signal
|
||||
let _ = tokio::spawn(async move {
|
||||
info!(ctx.logger(), "Starting warm bookmark cache updater");
|
||||
info!(ctx.logger(), "Started warm bookmark cache updater");
|
||||
let infinite_loop = async {
|
||||
loop {
|
||||
let repoid = repo.get_repoid();
|
||||
|
Loading…
Reference in New Issue
Block a user