feat!: update libp2p interfaces (#1252)

BREAKING CHANGE: uses new single-issue libp2p interface modules
This commit is contained in:
Alex Potsides
2022-06-15 18:30:39 +01:00
committed by GitHub
parent 13d95b413c
commit d4dd664071
81 changed files with 370 additions and 330 deletions

View File

@ -14,7 +14,7 @@ import { createPeerId } from '../utils/creators/peer.js'
import toBuffer from 'it-to-buffer'
import { createEd25519PeerId } from '@libp2p/peer-id-factory'
import { peerIdFromString } from '@libp2p/peer-id'
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { PeerId } from '@libp2p/interface-peer-id'
describe('Metrics', () => {
let peerId: PeerId
@ -199,7 +199,7 @@ describe('Metrics', () => {
})
const bytes = randomBytes(1024)
const input = pushable<Uint8Array>()
const input = pushable()
const deferredPromise = pipe(input, local, drain)