mirror of
https://github.com/actix/actix-web.git
synced 2025-02-01 03:42:21 +00:00
reset delay instead of creating new one
This commit is contained in:
parent
bb34df8c1b
commit
bf9269de9a
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ where
|
|||
if self.expire <= now {
|
||||
Err((self.f)())
|
||||
} else {
|
||||
self.delay = Delay::new(self.expire);
|
||||
self.delay.reset(self.expire);
|
||||
let _ = self.delay.poll();
|
||||
Ok(Async::Ready(()))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue