Skip to content

Commit

Permalink
renamed probe_public_files()
Browse files Browse the repository at this point in the history
  • Loading branch information
ddd-mtl committed Sep 21, 2023
1 parent deb209c commit dd9ba41
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dna/zomes/file_share/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ mod send_file;
mod get_unreplied_notices;
mod publish_file_manifest;
mod utils;
mod probe_files;
mod probe_public_files;
mod write_file_chunk;
mod respond_to_file_share_notice;
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::utils::ensure_parcel_is_file;

/// Wrapper for pull_public_parcels()
#[hdk_extern]
pub fn probe_files(_:()) -> ExternResult<Vec<ParcelReference>> {
pub fn probe_public_files(_:()) -> ExternResult<Vec<ParcelReference>> {
std::panic::set_hook(Box::new(zome_panic_hook));
let response = call_delivery_zome("pull_public_parcels", ())?;
let prs: Vec<ParcelReference> = decode_response(response)?;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"serve:save" : "echo SIGNAL_PORT=$SIGNAL_PORT && echo $SIGNAL_PORT > .hc_signalenv && echo $BOOT_PORT > .hc_bootenv && echo BOOT_PORT=$BOOT_PORT",
"serve" : "cross-env BOOT_PORT=$(cat .hc_bootenv) SIGNAL_PORT=$(cat .hc_signalenv) npm run serve:run",
"network:local2" : "npm run clean:hc & npm run build:devtest && cross-env BOOT_PORT=$(port) SIGNAL_PORT=$(port) concurrently \"npm run serve:save\" \"npm run serve:run\" \"cross-env INDEX=0 npm run start:local\" \"sleep 1 && cross-env INDEX=1 npm run start:local\"",
"network:local3" : "npm run clean:hc & npm run build:devtest && cross-env BOOT_PORT=$(port) SIGNAL_PORT=$(port) concurrently \"npm run serve:save\" \"npm run serve:run\" \"cross-env INDEX=0 npm run start:local\" \"cross-env INDEX=1 cross-env INDEX=1 npm run start:local\" \"cross-env INDEX=2 npm run start:local\"",
"network:local3" : "npm run clean:hc & npm run build:devtest && cross-env BOOT_PORT=$(port) SIGNAL_PORT=$(port) concurrently \"npm run serve:save\" \"npm run serve:run\" \"cross-env INDEX=0 npm run start:local\" \"sleep 1 && cross-env INDEX=1 npm run start:local\" \"sleep 2 && cross-env INDEX=2 npm run start:local\"",
"network:we" : "npm run clean:hc & npm run network:local2 -w we-applet",

"happ:local" : "echo INDEX: $INDEX & echo PORTS: $BOOT_PORT $SIGNAL_PORT $HC_APP_PORT $HC_ADMIN_PORT & RUST_LOG=warn WASM_LOG=warn echo \"pass\" | $npm_package_config_bin/hc s --piped -f=$HC_ADMIN_PORT run $INDEX",
Expand Down
2 changes: 1 addition & 1 deletion webcomponents/src/bindings/file_share.fn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const fileShareFunctionNames: FunctionName[] = [
"get_local_public_files",
"get_private_files_from",
"get_unreplied_notices",
"probe_files",
"probe_public_files",
"process_inbox",
"publish_file_manifest",
"refuse_file_share",
Expand Down
4 changes: 2 additions & 2 deletions webcomponents/src/bindings/file_share.proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ export class FileShareProxy extends ZomeProxy {
return this.call('get_unreplied_notices', null);
}

async probeFiles(): Promise<ParcelReference[]> {
return this.call('probe_files', null);
async probePublicFiles(): Promise<ParcelReference[]> {
return this.call('probe_public_files', null);
}

async processInbox(): Promise<void> {
Expand Down

0 comments on commit dd9ba41

Please sign in to comment.