mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-05-11 18:29:50 +00:00
Merge pull request #1134 from orbitdb/fix/helia-2
Use only bitswap in tests
This commit is contained in:
commit
9dba445f69
@ -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 })
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user