From e67c4cee35287e93e12af7550c409ef14f558274 Mon Sep 17 00:00:00 2001 From: haad Date: Fri, 30 Dec 2016 12:15:48 +0100 Subject: [PATCH] Use Nodejs version of ipfs for benchmarks --- examples/benchmark.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/benchmark.js b/examples/benchmark.js index 2c8a9a0..4af0977 100644 --- a/examples/benchmark.js +++ b/examples/benchmark.js @@ -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))