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

Commit

Permalink
Add Hyperswarm DHT
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o authored Jan 15, 2024
1 parent 0d84131 commit d94cb27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ const db = new Hyperswarm('./bitcoin-pairs-feed',"bitfinex_price_feed', {
refreshTime: '3 minutes',
valueEncoding: 'co.json'
})
// create a new HyperDHT instance
const db = new HyperswarmDHT('./bitcoin-pairs-feed',"bitfinex_price_feed', {
KeyEndocing: 'utf-8',
refreshTime: '3 minutes',
valueEncoding: 'co.json'

0 comments on commit d94cb27

Please sign in to comment.