Small changes following review

This commit is contained in:
Louis Dureuil 2024-06-13 14:20:48 +02:00
parent 3f212a8202
commit e35ef31738
No known key found for this signature in database
4 changed files with 14 additions and 12 deletions

View file

@ -101,13 +101,6 @@ pub struct WriteBackToDocuments {
}
impl SettingsDiff {
pub fn should_reindex(&self) -> bool {
match self {
SettingsDiff::Remove { .. } | SettingsDiff::Reindex { .. } => true,
SettingsDiff::UpdateWithoutReindex { .. } => false,
}
}
pub fn from_settings(old: EmbeddingSettings, new: Setting<EmbeddingSettings>) -> Self {
match new {
Setting::Set(new) => {