Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

feat: make ipfs.get output tarballs #3785

Merged
merged 20 commits into from
Aug 9, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
chore: switch to libp2p.create
  • Loading branch information
achingbrain committed Aug 5, 2021
commit 156ebef02fdc1d78b91974ae17cf3fec91c16f99
2 changes: 1 addition & 1 deletion packages/ipfs-core/src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export interface Libp2pFactoryFnArgs {
}

export interface Libp2pFactoryFn {
(args: Libp2pFactoryFnArgs): Libp2p
(args: Libp2pFactoryFnArgs): Promise<Libp2p>
}

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/ipfs-daemon/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Daemon {
/**
* @type {import('ipfs-core').Libp2pFactoryFn}
*/
function getLibp2p ({ libp2pOptions, options, config, peerId }) {
async function getLibp2p ({ libp2pOptions, options, config, peerId }) {
// Attempt to use any of the WebRTC versions available globally
let electronWebRTC
let wrtc
Expand Down Expand Up @@ -103,7 +103,7 @@ function getLibp2p ({ libp2pOptions, options, config, peerId }) {
}

const Libp2p = require('libp2p')
return new Libp2p(libp2pOptions)
return Libp2p.create(libp2pOptions)
}

module.exports = Daemon