fix(managed): correct pacing and drain cleanup
This commit is contained in:
4 files changed
+429
-25
No files matched your search
@@ -50,6 +50,11 @@ impl ProbeSchedule {
|
||||
self.next_send_at
|
||||
}
|
||||
|
||||
#[cfg(feature = "tokio")]
|
||||
pub(crate) fn interval(&self) -> Duration {
|
||||
self.interval
|
||||
}
|
||||
|
||||
pub(crate) fn permit_probe_at(&mut self, now: Instant) -> bool {
|
||||
if self.next_send_at.is_none() {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user