Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeguglielmo committed Oct 28, 2023
1 parent d20652f commit 06a96b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dht-cache/src/domocache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,12 @@ impl DomoCache {
log::info!("Caches are not synchronized");
if leader {
log::info!("Publishing my cache since I am the leader for the hash");
if self.last_cache_repub_timestamp
< (utils::get_epoch_ms() - 1000 * u128::from(SEND_CACHE_HASH_PERIOD))
{
self.publish_cache().await;
}

} else {
log::info!("I am not the leader for the hash");
}
Expand Down

0 comments on commit 06a96b8

Please sign in to comment.