Skip to content

Commit

Permalink
A few more changes to convert sys to util.
Browse files Browse the repository at this point in the history
  • Loading branch information
godsflaw committed Jun 2, 2012
1 parent ca500e2 commit ed7bb42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/peer_state.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var AccrualFailureDetector = require('./accrual_failure_detector').AccrualFailureDetector,
EventEmitter = require('events').EventEmitter,
sys = require('sys');
var AccrualFailureDetector = require('./accrual_failure_detector').AccrualFailureDetector,
EventEmitter = require('events').EventEmitter,
util = require('util');

var PeerState = exports.PeerState = function(name) {
EventEmitter.call(this);
Expand All @@ -13,7 +13,7 @@ var PeerState = exports.PeerState = function(name) {
this.name = name;
};

sys.inherits(PeerState, EventEmitter);
util.inherits(PeerState, EventEmitter);

PeerState.prototype.updateWithDelta = function(k,v,n) {
// It's possibly to get the same updates more than once if we're gossiping with multiple peers at once
Expand Down
1 change: 0 additions & 1 deletion simulation/s3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
var Gossiper = require('gossiper').Gossiper;
var sys = require('sys');

var seed1 = new Gossiper(9000, []);
seed1.start();
Expand Down

0 comments on commit ed7bb42

Please sign in to comment.