Skip to content

Commit

Permalink
feat: use ipfs-stats (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias authored Jan 16, 2018
1 parent f54f4dd commit 7848a11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 138 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"electron-menubar": "^1.0.1",
"electron-squirrel-startup": "^1.0.0",
"file-extension": "^4.0.1",
"ipfs-geoip": "^2.3.0",
"ipfs-stats": "^1.0.4",
"ipfsd-ctl": "^0.26.0",
"is-ipfs": "^0.3.2",
"moment": "^2.20.1",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {dialog, ipcMain, app, BrowserWindow} from 'electron'
import config from './config'
import registerControls from './controls/main'
import handleKnownErrors from './errors'
import StatsPoller from './utils/stats-poller'
import StatsPoller from 'ipfs-stats'

const {debug} = config

Expand Down Expand Up @@ -76,7 +76,7 @@ function onStartDaemon (node) {
}

debug('Daemon started')
poller = new StatsPoller(ipfsNode, debug)
poller = new StatsPoller(ipfsNode, 1000, debug)

if (menubar.window && menubar.window.isVisible()) {
poller.start()
Expand Down
135 changes: 0 additions & 135 deletions src/utils/stats-poller.js

This file was deleted.

0 comments on commit 7848a11

Please sign in to comment.