mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
warm_bookmarks_cache: remove debug log for each iteration
Summary: Debug logging each iteration of the background bookmark cache updater is distracting. Instead, just log when it starts. Reviewed By: krallin Differential Revision: D17928810 fbshipit-source-id: 77cecc8641b145e921acc4fc91c1be14c22576c9
This commit is contained in:
parent
741545e9a3
commit
2305548152
@ -85,19 +85,14 @@ fn spawn_bookmarks_updater(
|
||||
repo: BlobRepo,
|
||||
) {
|
||||
tokio::spawn(future::lazy(move || {
|
||||
debug!(logger, "Starting warm bookmark cache updater");
|
||||
stream::repeat(())
|
||||
.and_then({
|
||||
cloned!(logger);
|
||||
move |()| {
|
||||
debug!(logger, "updating bookmark cache...");
|
||||
update_bookmarks(bookmarks.clone(), ctx.clone(), repo.clone()).timed(
|
||||
|stats, _| {
|
||||
STATS::cached_bookmark_update_time_ms
|
||||
.add_value(stats.completion_time.as_millis_unchecked() as i64);
|
||||
Ok(())
|
||||
},
|
||||
)
|
||||
}
|
||||
.and_then(move |()| {
|
||||
update_bookmarks(bookmarks.clone(), ctx.clone(), repo.clone()).timed(|stats, _| {
|
||||
STATS::cached_bookmark_update_time_ms
|
||||
.add_value(stats.completion_time.as_millis_unchecked() as i64);
|
||||
Ok(())
|
||||
})
|
||||
})
|
||||
.then(|_| {
|
||||
let dur = Duration::from_millis(1000);
|
||||
|
Loading…
Reference in New Issue
Block a user