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

Commit

Permalink
fix: disable workers router
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Jun 27, 2019
1 parent 6b097d8 commit c01dc2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/ipns/routing/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const PubsubDatastore = require('./pubsub-datastore')
const OfflineDatastore = require('./offline-datastore')
const DnsDatastore = require('./experimental/dns-datastore')
const MDnsDatastore = require('./experimental/mdns-datastore')
const WorkersDatastore = require('./experimental/workers-datastore')
// const WorkersDatastore = require('./experimental/workers-datastore')
const ExperimentalTieredDatastore = require('./experimental/tiered-datastore')
/**
* @typedef { import("../../index") } IPFS
Expand All @@ -21,7 +21,8 @@ module.exports = (ipfs) => {
// Setup online routing for IPNS with a tiered routing composed by a DHT and a Pubsub router (if properly enabled)
const ipnsStores = []
if (ipfs._options.EXPERIMENTAL.ipnsDNS) {
ipnsStores.push(new WorkersDatastore(ipfs._options.ipns))
// something is wrong with the workers code disabled for now
// ipnsStores.push(new WorkersDatastore(ipfs._options.ipns))
ipnsStores.push(new DnsDatastore(ipfs._options.ipns))
ipnsStores.push(new MDnsDatastore(ipfs._options.ipns))
return new ExperimentalTieredDatastore(ipnsStores)
Expand Down

0 comments on commit c01dc2c

Please sign in to comment.