Skip to content

Commit

Permalink
fix: add required identify dependency (#148)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel N <2color@users.noreply.github.com>
  • Loading branch information
2color and 2color authored Sep 20, 2024
1 parent e7514c3 commit 5cecc40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/health-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { readFile } from 'node:fs/promises'
import { parseArgs } from 'node:util'
import { noise } from '@chainsafe/libp2p-noise'
import { yamux } from '@chainsafe/libp2p-yamux'
import { identify } from '@libp2p/identify'
import { kadDHT } from '@libp2p/kad-dht'
import { peerIdFromString } from '@libp2p/peer-id'
import { tcp } from '@libp2p/tcp'
Expand Down Expand Up @@ -74,7 +75,8 @@ async function tryToDialMaddrOrPeerId (multiaddrOrPeerId: string): Promise<void>
noise()
],
services: {
dht: kadDHT({ clientMode: true })
dht: kadDHT({ clientMode: true }),
identify: identify()
}
})

Expand Down

0 comments on commit 5cecc40

Please sign in to comment.