Skip to content

Commit 5cba995

Browse files
committed
Expose Peer on Replicator
1 parent 64116ee commit 5cba995

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/replicator.js

+2
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,8 @@ class Peer {
12151215
}
12161216

12171217
module.exports = class Replicator {
1218+
static Peer = Peer // hack to be able to access Peer from outside this module
1219+
12181220
constructor (core, key, {
12191221
notDownloadingLinger = NOT_DOWNLOADING_SLACK,
12201222
eagerUpgrade = true,

0 commit comments

Comments
 (0)