Commit d1ec51bf authored by Arlo Breault's avatar Arlo Breault
Browse files

Remove unused clientAddr from ProxyPair

parent 5212eda6
......@@ -22,7 +22,7 @@ class ProxyPair
onCleanup: null
id: null
constructor: (@clientAddr, @relayAddr, @rateLimit) ->
constructor: (@relayAddr, @rateLimit) ->
@active = false
@id = genSnowflakeID()
......
......@@ -143,7 +143,7 @@ class Snowflake
.catch fail
makeProxyPair: (relay) ->
pair = new ProxyPair null, relay, @rateLimit
pair = new ProxyPair relay, @rateLimit
@proxyPairs.push pair
pair.onCleanup = (event) =>
# Delete from the list of active proxy pairs.
......
......@@ -7,8 +7,7 @@ describe 'ProxyPair', ->
fakeRelay = Parse.address '0.0.0.0:12345'
rateLimit = new DummyRateLimit()
destination = []
fakeClient = send: (d) -> destination.push d
pp = new ProxyPair(fakeClient, fakeRelay, rateLimit)
pp = new ProxyPair(fakeRelay, rateLimit)
it 'begins webrtc connection', ->
pp.begin()
......
......@@ -159,13 +159,12 @@ describe 'ProxyPair', ->
fakeRelay = Parse.address '0.0.0.0:12345'
rateLimit = new DummyRateLimit()
destination = []
fakeClient = send: (d) -> destination.push d
# Fake snowflake to interact with
snowflake = {
broker:
sendAnswer: ->
}
pp = new ProxyPair(fakeClient, fakeRelay, rateLimit)
pp = new ProxyPair(fakeRelay, rateLimit)
it 'begins webrtc connection', ->
pp.begin()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment