Skip to content

Commit

Permalink
Remove isRandomized
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewosh committed Sep 29, 2023
1 parent 0642240 commit 5633e52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ module.exports = class Hyperswarm extends EventEmitter {

_maybeRelayConnection () {
if (!this.relayThrough) return null
const isRandomized = this.dht.host && (this.dht.port === 0)
return this.relayThrough(isRandomized)
return this.relayThrough()
}

_enqueue (peerInfo) {
Expand Down

0 comments on commit 5633e52

Please sign in to comment.