We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 887ab71 commit 8ab1a67Copy full SHA for 8ab1a67
crates/store/src/dispatch/search.rs
@@ -20,14 +20,8 @@ use std::cmp::Ordering;
20
impl SearchStore {
21
pub async fn query_account(&self, query: SearchQuery) -> trc::Result<Vec<u32>> {
22
// Pre-filter by mask
23
- match query.mask.len().cmp(&1) {
24
- Ordering::Equal => {
25
- return Ok(vec![query.mask.min().unwrap()]);
26
- }
27
- Ordering::Less => {
28
- return Ok(vec![]);
29
30
- Ordering::Greater => {}
+ if query.mask.is_empty() {
+ return Ok(vec![]);
31
}
32
33
// If the store does not support FTS, use the internal FTS store
0 commit comments