Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: IPFS retrieval client #243

Merged
merged 25 commits into from
Jun 13, 2023
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2bce5d3
test: setup env logger in integration tests
bajtos Jun 7, 2023
1a30f47
feat: add Lassie - IPFS retrieval client
bajtos Jun 7, 2023
5be5140
deps: upgrade lassie to v0.2.0
bajtos Jun 7, 2023
884f05a
fixup! remove unused lifetime param
bajtos Jun 7, 2023
93f2c31
feat: fetch('ipfs://bafycid')
bajtos Jun 7, 2023
f74672b
REVERT ME: temporarily disable aarch64
bajtos Jun 7, 2023
31a5b8c
Revert "REVERT ME: temporarily disable aarch64"
bajtos Jun 8, 2023
3c5826a
temporarily use Lassie from git main branch
bajtos Jun 8, 2023
f810edd
upgrade lassie to 0.3.0
bajtos Jun 8, 2023
7e4d990
fix tests + code cleanup
bajtos Jun 8, 2023
d6f4cdf
add support for URL and Request inputs
bajtos Jun 8, 2023
460b94d
fix clippy warning
bajtos Jun 8, 2023
19809a5
Merge remote-tracking branch 'origin/main' into feat-lassie
bajtos Jun 8, 2023
66b5837
add docs for module builders
bajtos Jun 8, 2023
ed48be7
Apply suggestions from code review
bajtos Jun 12, 2023
12d2c7f
fixup! prettier --write
bajtos Jun 12, 2023
3078d7f
add Go to build dependencies
bajtos Jun 12, 2023
75f8239
fix a bug in test assertions
bajtos Jun 12, 2023
00e396d
tweak setup-go config
bajtos Jun 12, 2023
78f629a
fixup!: go-version latest -> stable
bajtos Jun 13, 2023
7db4ee8
fixup! improve code comment
bajtos Jun 13, 2023
371b24a
fixup! remove non-ASCII characters from fetch.js
bajtos Jun 13, 2023
b2e1cca
fix syntax error to fix a failing test
bajtos Jun 13, 2023
831b954
document temp_dir setting in zinnia CLI
bajtos Jun 13, 2023
6093b21
Merge branch 'main' into feat-lassie
bajtos Jun 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix clippy warning
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
bajtos committed Jun 8, 2023

Verified

This commit was signed with the committer’s verified signature.
jcubic Jakub T. Jankiewicz
commit 460b94d54135d232fcd2f4106535abefb97a302b
5 changes: 2 additions & 3 deletions runtime/tests/helpers/mod.rs
Original file line number Diff line number Diff line change
@@ -4,9 +4,8 @@ pub fn lassie_daemon() -> Arc<lassie::Daemon> {
static LASSIE_DAEMON: OnceLock<Result<Arc<lassie::Daemon>, lassie::StartError>> =
OnceLock::new();

let result = LASSIE_DAEMON.get_or_init(|| {
lassie::Daemon::start(lassie::DaemonConfig::default()).map(|d| Arc::new(d))
});
let result = LASSIE_DAEMON
.get_or_init(|| lassie::Daemon::start(lassie::DaemonConfig::default()).map(Arc::new));

match result {
Ok(ptr) => Arc::clone(ptr),