Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
trinity-1686a committed Nov 10, 2022
1 parent 429cca2 commit 9a43565
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/core/inverted_index_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,22 +234,14 @@ impl InvertedIndexReader {
/// This method is for an advanced usage only.
///
/// If you know which terms to pre-load, prefer using [`Self::warm_postings`] instead.
pub async fn warm_postings_full(
&self,
with_positions: bool,
) -> crate::AsyncIoResult<()> {
self.postings_file_slice
.read_bytes_async()
.await?;
pub async fn warm_postings_full(&self, with_positions: bool) -> crate::AsyncIoResult<()> {
self.postings_file_slice.read_bytes_async().await?;
if with_positions {
self.positions_file_slice
.read_bytes_async()
.await?;
self.positions_file_slice.read_bytes_async().await?;
}
Ok(())
}


/// Returns the number of documents containing the term asynchronously.
pub async fn doc_freq_async(&self, term: &Term) -> crate::AsyncIoResult<u32> {
Ok(self
Expand Down

0 comments on commit 9a43565

Please sign in to comment.