swap
SystemTime for Instant throughout rate_limit_expiry tracking
This commit is contained in:
parent
7df21f86dd
commit
e678c7d9ee
4 changed files with 16 additions and 16 deletions
|
@ -21,7 +21,7 @@ use std::{
|
|||
atomic::{self, AtomicUsize},
|
||||
Arc,
|
||||
},
|
||||
time::SystemTime,
|
||||
time::{Instant, SystemTime},
|
||||
};
|
||||
use unindent::Unindent;
|
||||
use util::RandomCharIter;
|
||||
|
@ -1275,7 +1275,7 @@ impl EmbeddingProvider for FakeEmbeddingProvider {
|
|||
200
|
||||
}
|
||||
|
||||
fn rate_limit_expiration(&self) -> Option<SystemTime> {
|
||||
fn rate_limit_expiration(&self) -> Option<Instant> {
|
||||
None
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue