filter out old gossip pull requests (#11448)

* init

* builds

* stats

* revert

* tests

* clippy

* add some jitter

* shorter jitter timer

* update

* fixup! update

* use saturating_sub

* fix filters
This commit is contained in:
anatoly yakovenko
2020-08-11 06:26:42 -07:00
committed by GitHub
parent f12fc66a69
commit 713851b68d
4 changed files with 102 additions and 14 deletions

View File

@@ -1746,7 +1746,7 @@ impl ClusterInfo {
"generate_pull_responses",
&self.stats.generate_pull_responses,
)
.generate_pull_responses(&caller_and_filters);
.generate_pull_responses(&caller_and_filters, now);
self.time_gossip_write_lock("process_pull_reqs", &self.stats.process_pull_requests)
.process_pull_requests(caller_and_filters, now);