Skip to content

Commit

Permalink
Apply review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rdettai committed May 16, 2024
1 parent dc43c1d commit d3f3998
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use super::file_backed_index::FileBackedIndex;
use super::store_operations::{load_index, METASTORE_FILE_NAME};

/// Lazy [`FileBackedIndex`]. It loads a `FileBackedIndex` on demand. When the index is first
/// loaded, it optionally spawns a task to regularly poll the storage and update the index.
/// loaded, it optionally spawns a task to periodically poll the storage and update the index.
pub(crate) struct LazyFileBackedIndex {
index_id: IndexId,
storage: Arc<dyn Storage>,
Expand Down Expand Up @@ -67,7 +67,7 @@ impl LazyFileBackedIndex {
}
}

/// Get a syncronized `FileBackedIndex`. If the index wasn't provided on creation, we load it
/// Gets a synchronized `FileBackedIndex`. If the index wasn't provided on creation, we load it
/// lazily on the first call of this method.
pub async fn get(&self) -> MetastoreResult<Arc<Mutex<FileBackedIndex>>> {
self.lazy_index
Expand Down

0 comments on commit d3f3998

Please sign in to comment.