Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 3bc8a88

Browse files
committed
libp2p new state interface
1 parent cd3b754 commit 3bc8a88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/components/is-online.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module.exports = function isOnline (self) {
44
return () => {
5-
return Boolean(self._bitswap && self._libp2pNode && self._libp2pNode.isOn())
5+
return Boolean(self._bitswap && self._libp2pNode && self._libp2pNode.isStarted())
66
}
77
}

src/core/components/libp2p.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = function libp2p (self) {
3333
if (self.isOnline()) {
3434
dial()
3535
} else {
36-
self._libp2pNode.once('online', dial)
36+
self._libp2pNode.once('start', dial)
3737
}
3838
})
3939

0 commit comments

Comments
 (0)