circular dependency node bug
This commit is contained in:
parent
c2c63f9576
commit
81907545b0
1 changed files with 1 additions and 2 deletions
|
|
@ -1,5 +1,4 @@
|
|||
/** @format */
|
||||
const Events = require('./index')
|
||||
const Key = require('../key')
|
||||
const Schema = require('../schema')
|
||||
const Streams = require('../streams')
|
||||
|
|
@ -101,7 +100,7 @@ const onReceivedReqs = cb => {
|
|||
listeners.add(cb)
|
||||
|
||||
if (!subbed) {
|
||||
Events.onCurrentHandshakeAddress(addr => {
|
||||
require('./index').onCurrentHandshakeAddress(addr => {
|
||||
if (currentAddress !== addr) {
|
||||
currentAddress = addr
|
||||
currentNode = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue