Skip to content

Commit

Permalink
Fixing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fulmicoton committed Mar 18, 2022
1 parent 963b4af commit c7cb458
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/indexer/prepared_commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl<'a> PreparedCommit<'a> {
}

/// Proceeds to commit.
/// See `.commit_async()`.
/// See `.commit_future()`.
pub fn commit(self) -> crate::Result<Opstamp> {
self.commit_future().wait()
}
Expand Down
5 changes: 3 additions & 2 deletions src/indexer/segment_updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,9 @@ impl SegmentUpdater {
if !self.is_alive() {
return crate::TantivyError::SystemError("Segment updater killed".to_string()).into();
}
let (scheduled_result, sender) =
FutureResult::create("A segment_updater future did not succeed. This should never happen.");
let (scheduled_result, sender) = FutureResult::create(
"A segment_updater future did not succeed. This should never happen.",
);
self.pool.spawn(|| {
let task_result = task();
let _ = sender.send(task_result);
Expand Down

0 comments on commit c7cb458

Please sign in to comment.