This repository was archived by the owner on Aug 23, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ const debug = require('debug')
7
7
const log = debug ( 'libp2p:swarm:connection' )
8
8
const setImmediate = require ( 'async/setImmediate' )
9
9
10
- const Circuit = require ( 'libp2p-circuit' )
11
-
12
10
const protocolMuxer = require ( './protocol-muxer' )
13
11
const plaintext = require ( './plaintext' )
14
12
@@ -94,18 +92,6 @@ module.exports = function connection (swarm) {
94
92
} )
95
93
} ,
96
94
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
-
109
95
crypto ( tag , encrypt ) {
110
96
if ( ! tag && ! encrypt ) {
111
97
tag = plaintext . tag
Original file line number Diff line number Diff line change 3
3
const Connection = require ( 'interface-connection' ) . Connection
4
4
const debug = require ( 'debug' )
5
5
const log = debug ( 'libp2p:swarm:dial' )
6
- const setImmediate = require ( 'async/setImmediate' )
7
-
8
- const protocolMuxer = require ( './protocol-muxer' )
9
6
10
7
module . exports = function dial ( swarm ) {
11
8
return ( pi , protocol , callback ) => {
You can’t perform that action at this time.
0 commit comments