SystemTime for Instant throughout rate_limit_expiry tracking
This commit is contained in:
KCaverly 2023-09-11 10:26:14 -04:00
parent 7df21f86dd
commit e678c7d9ee
4 changed files with 16 additions and 16 deletions

View file

@ -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
}