Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

A few more changes to convert sys to util.

  • Loading branch information...
commit ed7bb424a5736f26c6ebf6a1a4db4d23e8e9c198 1 parent ca500e2
@godsflaw godsflaw authored
Showing with 4 additions and 5 deletions.
  1. +4 −4 lib/peer_state.js
  2. +0 −1  simulation/s3.js
View
8 lib/peer_state.js
@@ -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);
@@ -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
View
1  simulation/s3.js
@@ -1,5 +1,4 @@
var Gossiper = require('gossiper').Gossiper;
-var sys = require('sys');
var seed1 = new Gossiper(9000, []);
seed1.start();
Please sign in to comment.
Something went wrong with that request. Please try again.