From 6746d88bb722904661917b3f089556bd6c830805 Mon Sep 17 00:00:00 2001 From: haad Date: Sat, 7 May 2016 12:12:34 +0200 Subject: [PATCH] Fix benchmark-kv example --- examples/benchmark-kv.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/examples/benchmark-kv.js b/examples/benchmark-kv.js index f3475f3..96aa6da 100644 --- a/examples/benchmark-kv.js +++ b/examples/benchmark-kv.js @@ -9,13 +9,10 @@ const Timer = require('./Timer'); // usage: benchmark.js ; // orbit-server -const host = process.argv[2] ? process.argv[2] : 'localhost' -const port = 3333; - -const username = process.argv[3] ? process.argv[3] : 'testrunner'; +const network = 'QmYPobvobKsyoCKTw476yTui611XABf927KxUPCf4gRLRr'; // 'localhost:3333' +const username = process.argv[2] ? process.argv[2] : 'testrunner'; const password = ''; - -const channelName = process.argv[4] ? process.argv[4] : 'c1'; +const channelName = process.argv[3] ? process.argv[3] : 'c1'; const startIpfs = () => { return new Promise((resolve, reject) => { @@ -30,7 +27,7 @@ let run = (async(() => { try { // Connect const ipfs = await(startIpfs()); - const orbit = await(OrbitDB.connect(host, port, username, password, ipfs)); + const orbit = await(OrbitDB.connect(network, username, password, ipfs)); const db = await(orbit.kvstore(channelName)); // Metrics