Skip to content

Commit

Permalink
reformat query argument to better conform to the general style
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillFish8 committed Aug 20, 2021
1 parent 2d72f15 commit ecbc13d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added benchmarks/results/lnx-pre-compute-150-conn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion engine/src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ impl IndexReaderHandler {

let (resolve, waiter) = oneshot::channel();

let doc_id = match (self.schema.get_field("_id"), payload.ref_document) {
let doc_id = match (self.schema.get_field("_id"), payload.document) {
(None, _) => Err(Error::msg("missing a required private field, this is a bug.")),
(_, None) => Ok(None),
(Some(field), Some(doc_id)) => {
Expand Down
2 changes: 1 addition & 1 deletion engine/src/structures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ pub struct QueryPayload {
pub(crate) query: Option<String>,

/// A reference document for `QueryMode::MoreLikeThis`.
pub(crate) ref_document: Option<u64>,
pub(crate) document: Option<u64>,

/// The query mode which determines which query system will be
/// used.
Expand Down

0 comments on commit ecbc13d

Please sign in to comment.