Skip to content
This repository was archived by the owner on Aug 23, 2019. It is now read-only.

Commit 16bcb2a

Browse files
committed
removing circuit setup
1 parent 0e1860b commit 16bcb2a

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/connection.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ const debug = require('debug')
77
const log = debug('libp2p:swarm:connection')
88
const setImmediate = require('async/setImmediate')
99

10-
const Circuit = require('libp2p-circuit')
11-
1210
const protocolMuxer = require('./protocol-muxer')
1311
const plaintext = require('./plaintext')
1412

@@ -94,18 +92,6 @@ module.exports = function connection (swarm) {
9492
})
9593
},
9694

97-
enableRelayDialing (config) {
98-
config = config ||
99-
{
100-
circuit: {
101-
enabled: false
102-
}
103-
}
104-
105-
swarm.relay = true
106-
swarm.transport.add(Circuit.tag, new Circuit.Dialer(swarm, config))
107-
},
108-
10995
crypto (tag, encrypt) {
11096
if (!tag && !encrypt) {
11197
tag = plaintext.tag

src/dial.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
const Connection = require('interface-connection').Connection
44
const debug = require('debug')
55
const log = debug('libp2p:swarm:dial')
6-
const setImmediate = require('async/setImmediate')
7-
8-
const protocolMuxer = require('./protocol-muxer')
96

107
module.exports = function dial (swarm) {
118
return (pi, protocol, callback) => {

0 commit comments

Comments
 (0)