mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-22 05:35:08 +02:00
reset delay instead of creating new one
This commit is contained in:
@@ -106,7 +106,7 @@ where
|
|||||||
if self.expire <= now {
|
if self.expire <= now {
|
||||||
Err((self.f)())
|
Err((self.f)())
|
||||||
} else {
|
} else {
|
||||||
self.delay = Delay::new(self.expire);
|
self.delay.reset(self.expire);
|
||||||
let _ = self.delay.poll();
|
let _ = self.delay.poll();
|
||||||
Ok(Async::Ready(()))
|
Ok(Async::Ready(()))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user