Merge pull request #1134 from orbitdb/fix/helia-2

Use only bitswap in tests
This commit is contained in:
Hayden Young 2023-12-16 00:13:09 +08:00 committed by GitHub
commit 9dba445f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
import { createHelia } from 'helia'
import { bitswap } from 'helia/block-brokers'
import { createLibp2p } from 'libp2p'
import { DefaultLibp2pOptions, DefaultLibp2pBrowserOptions } from '../../src/index.js'
@ -9,5 +10,10 @@ export default async () => {
const libp2p = await createLibp2p({ ...options })
return createHelia({ libp2p })
const heliaOptions = {
libp2p,
blockBrokers: [bitswap()]
}
return createHelia({ ...heliaOptions })
}