Skip to content

Commit 4ffcee1

Browse files
committed
fix: update to crates.io hc_prefix_index
1 parent 4c198a6 commit 4ffcee1

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ target/
1919
dist.zip
2020

2121
## holo files
22-
holo-dev-server
22+
holo-dev-server
23+
24+
.claude

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ hdi = "0.7.0"
77
hdk = "0.6.0"
88
serde = "1"
99
paste = "1.0"
10-
hc_prefix_index = { path = "../holochain-prefix-index/lib/hc_prefix_index" }
10+
hc_prefix_index = "0.14.0"
1111
holochain_serialized_bytes = "0.0.56"
1212

1313
[workspace.dependencies.agent_pins]

dnas/mewsfeed/zomes/coordinator/mews/src/random_mews.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ pub fn get_random_mew_hashes(input: ZomeFnInput<usize>) -> ExternResult<Vec<Acti
4242
#[hdk_extern]
4343
pub fn get_random_tags(input: ZomeFnInput<usize>) -> ExternResult<Vec<String>> {
4444
let prefix_index = make_tag_prefix_index()?;
45+
let strategy = input.get_strategy();
4546

46-
prefix_index.get_random_results(input.input)
47+
prefix_index.get_random_results(input.input, strategy)
4748
}
4849

4950
#[derive(Serialize, Deserialize, Debug)]

dnas/mewsfeed/zomes/coordinator/mews/src/search_tags.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ pub struct SearchTagsInput {
1010
#[hdk_extern]
1111
fn search_tags(input: ZomeFnInput<SearchTagsInput>) -> ExternResult<Vec<String>> {
1212
let prefix_index = make_tag_prefix_index()?;
13-
prefix_index.get_results(input.input.query, input.input.limit)
13+
let strategy = input.get_strategy();
14+
prefix_index.get_results(input.input.query, input.input.limit, strategy)
1415
}

0 commit comments

Comments
 (0)