Skip to content

Commit 9398c92

Browse files
authored
Expose Peer on Replicator (#492)
1 parent 4945cda commit 9398c92

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)