Skip to content

Commit dee73bc

Browse files
authored
feat(hermes): add ipfs connection opening to doc_sync (#685)
* feat(hermes): add ipfs connection opening to doc_sync * chore(hermes): rafactoring * feat(hermes): add doc-sync opening test * fix(CI): fix spelling * fix(hermes): fix test * fix(CI): ignore some lints * chore(hermes): update lock file * fix(hermes): change document id to cbor encoded CID * chore(hermes): remove unused imports * fix(hermes): forbid usage of sync channel resource after close * chore(hermes): fix lints * chore(hermes): update code so that it uses 4 byte hash * chore(hermes): add comment
1 parent a00913a commit dee73bc

File tree

12 files changed

+373
-54
lines changed

12 files changed

+373
-54
lines changed

.config/dictionaries/project.dic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ reentrancy
155155
removedir
156156
renameat
157157
reqwest
158+
reusage
158159
rfind
159160
Rmax
160161
Rmin

hermes/Cargo.lock

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

hermes/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ members = [
66
"bin/tests/integration/components/failed_init",
77
"bin/tests/integration/components/sleep_component",
88
"bin/tests/integration/components/cron_callback",
9-
"bin/tests/integration/components/staked_ada_indexer_mock"
9+
"bin/tests/integration/components/staked_ada_indexer_mock",
10+
"bin/tests/integration/components/ipfs_subscribe",
1011
]
1112
default-members = [
1213
"bin",

hermes/bin/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ orx-concurrent-vec = "3.10.0"
102102
keyed-lock = "0.2.3"
103103
wasmprinter = "0.240.0"
104104
wat = "1.239.0"
105+
multihash = { version = "0.19.3", features = ["serde-codec"] }
105106

106107
[build-dependencies]
107108
build-info-build = "0.0.42"

hermes/bin/src/ipfs/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pub(crate) fn hermes_ipfs_subscribe(
118118
} else {
119119
let handle = ipfs.pubsub_subscribe(&topic)?;
120120
ipfs.apps.added_topic_stream(topic.clone(), handle);
121-
tracing::debug!(app_name = %app_name, pubsub_topic = %topic, "added subscription topic stream");
121+
tracing::info!(app_name = %app_name, pubsub_topic = %topic, "added subscription topic stream");
122122
}
123123
ipfs.apps
124124
.added_app_topic_subscription(app_name.clone(), topic);

0 commit comments

Comments
 (0)