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 */
|
/** @format */
|
||||||
const Events = require('./index')
|
|
||||||
const Key = require('../key')
|
const Key = require('../key')
|
||||||
const Schema = require('../schema')
|
const Schema = require('../schema')
|
||||||
const Streams = require('../streams')
|
const Streams = require('../streams')
|
||||||
|
|
@ -101,7 +100,7 @@ const onReceivedReqs = cb => {
|
||||||
listeners.add(cb)
|
listeners.add(cb)
|
||||||
|
|
||||||
if (!subbed) {
|
if (!subbed) {
|
||||||
Events.onCurrentHandshakeAddress(addr => {
|
require('./index').onCurrentHandshakeAddress(addr => {
|
||||||
if (currentAddress !== addr) {
|
if (currentAddress !== addr) {
|
||||||
currentAddress = addr
|
currentAddress = addr
|
||||||
currentNode = {}
|
currentNode = {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue