Skip to content

Commit

Permalink
Renamed legacy name RingPopTChannel to RingpopServer
Browse files Browse the repository at this point in the history
  • Loading branch information
jwolski committed Sep 30, 2015
1 parent 387f81d commit 47901af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ var Config = require('./config.js');
var createEventForwarder = require('./lib/event-forwarder.js');
var createMembershipSetListener = require('./lib/membership-set-listener.js');
var createMembershipUpdateListener = require('./lib/membership-update-listener.js');
var createServer = require('./server');
var Dissemination = require('./lib/dissemination.js');
var errors = require('./lib/errors.js');
var getTChannelVersion = require('./lib/util.js').getTChannelVersion;
Expand All @@ -60,6 +59,7 @@ var MembershipUpdateRollup = require('./lib/membership/rollup.js');
var nulls = require('./lib/nulls');
var rawHead = require('./lib/request-proxy/util.js').rawHead;
var RequestProxy = require('./lib/request-proxy/index.js');
var RingpopServer = require('./server');
var safeParse = require('./lib/util').safeParse;
var sendJoin = require('./lib/swim/join-sender.js').joinCluster;
var TracerStore = require('./lib/trace/store.js');
Expand Down Expand Up @@ -218,7 +218,7 @@ RingPop.prototype.destroy = function destroy() {
};

RingPop.prototype.setupChannel = function setupChannel() {
createServer(this, this.channel);
this.server = new RingpopServer(this, this.channel);
};

/*
Expand Down
8 changes: 2 additions & 6 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'use strict';


function RingPopTChannel(ringpop, tchannel) {
function RingpopServer(ringpop, tchannel) {
var self = this;
self.ringpop = ringpop;
self.tchannel = tchannel;
Expand Down Expand Up @@ -63,8 +63,4 @@ function RingPopTChannel(ringpop, tchannel) {
}
}

function createServer(ringpop, tchannel) {
return new RingPopTChannel(ringpop, tchannel);
}

module.exports = createServer;
module.exports = RingpopServer;

0 comments on commit 47901af

Please sign in to comment.