Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Commit 21b5a0b

Browse files
committed
Typos, comments and logs
1 parent d10c139 commit 21b5a0b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/network/farmer.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ function FarmerInterface(options) {
8484

8585
this.spaceAvailable = true;
8686

87-
// Connecting the dots (we need to reorganize this better)
87+
// Connecting the dots. Note: We should organize this better
88+
// so that it's not necesarry to set these after they
89+
// have been constructed.
8890
this._protocol.handleAlloc = this.handleAlloc.bind(this);
8991
this.transport.shardServer.farmerInterface = this;
9092

@@ -118,7 +120,7 @@ FarmerInterface.prototype._deprecatedConfigV1 = function(options) {
118120

119121
FarmerInterface.prototype.isBridgeConnected = function(contract) {
120122
if (!this.bridges) {
121-
this._logger.debug('no bridge are connected');
123+
this._logger.debug('no bridges are connected');
122124
return false;
123125
}
124126
var isConnected = this.bridges.has(contract.get('renter_hd_key'));
@@ -266,6 +268,7 @@ FarmerInterface.prototype._connectBridges = function() {
266268
}
267269
this.bridges.get(bridge.extendedKey).connected = true;
268270
this.emit('bridgeConnected', bridge);
271+
this._logger.info('Connected to bridge: %s', bridge.url);
269272
next();
270273
});
271274
}, (err) => {
@@ -274,7 +277,6 @@ FarmerInterface.prototype._connectBridges = function() {
274277
return this._logger.error('Unable to connect to bridges');
275278
}
276279
this.emit('bridgesConnected');
277-
this._logger.info('Finished connecting to bridges');
278280
});
279281
}
280282

0 commit comments

Comments
 (0)