Use Nodejs version of ipfs for benchmarks

This commit is contained in:
haad 2016-12-30 12:15:48 +01:00
parent c8b1690dd9
commit e67c4cee35

View File

@ -1,6 +1,6 @@
'use strict'
const IpfsDaemon = require('ipfs-daemon')
const IpfsDaemon = require('ipfs-daemon/src/ipfs-node-daemon')
const OrbitDB = require('../src/OrbitDB')
// Metrics
@ -24,7 +24,7 @@ const queryLoop = (db) => {
// Start
console.log("Starting IPFS daemon...")
const ipfs = new IpfsDaemon({ IpfsDataDir: '/tmp/orbit-db-benchmark' })
const ipfs = new IpfsDaemon()
ipfs.on('error', (err) => console.error(err))