Skip to content

Commit ed2eeab

Browse files
authored
Merge pull request #26 from msgflo/cleanups
Cleanups for browser/webpack
2 parents e1dc735 + c7c0675 commit ed2eeab

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/interfaces.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class MessagingSystem
3737
class MessagingClient extends MessagingSystem
3838

3939
# Participant registration
40-
registerParticipant: (part) ->
40+
registerParticipant: (part, callback) ->
4141
throw new Error 'Not Implemented'
4242

4343
exports.MessagingClient = MessagingClient

src/participant.coffee

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11

22
common = require './common'
33
transport = require './transport'
4+
newrelic = require './newrelic'
45

5-
path = require 'path'
6-
fs = require 'fs'
76
debug = require('debug')('msgflo:participant')
8-
chance = require 'chance'
97
async = require 'async'
108
EventEmitter = require('events').EventEmitter
119
uuid = require 'uuid'
12-
fbp = require 'fbp'
13-
14-
random = new chance.Chance 10202
1510

1611
findPort = (def, type, portName) ->
1712
ports = if type == 'inport' then def.inports else def.outports
@@ -60,7 +55,6 @@ class Participant extends EventEmitter
6055
role = 'unknown' if not role
6156
@definition = instantiateDefinition def, role
6257
@running = false
63-
newrelic = require './newrelic'
6458
@_transactions = new newrelic.Transactions @definition
6559
@options = options
6660
@options.discoveryPeriod = defaultDiscoveryPeriod if not @options.discoveryPeriod # seconds

0 commit comments

Comments
 (0)