updated semantic_index reset status to leverage target reset system time as opposed to duration

This commit is contained in:
KCaverly 2023-09-08 15:04:50 -04:00
parent a5ee8fc805
commit bf43f93197
4 changed files with 50 additions and 55 deletions

View file

@ -21,7 +21,7 @@ use std::{
atomic::{self, AtomicUsize},
Arc,
},
time::{Duration, SystemTime},
time::SystemTime,
};
use unindent::Unindent;
use util::RandomCharIter;
@ -1275,8 +1275,8 @@ impl EmbeddingProvider for FakeEmbeddingProvider {
200
}
fn rate_limit_expiration(&self) -> Duration {
Duration::ZERO
fn rate_limit_expiration(&self) -> Option<SystemTime> {
None
}
async fn embed_batch(&self, spans: Vec<String>) -> Result<Vec<Embedding>> {