File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -86,16 +86,16 @@ export class Libp2p<T extends ServiceMap = ServiceMap> extends TypedEventEmitter
86
86
dns : init . dns
87
87
} )
88
88
89
- this . peerStore = this . configureComponent ( 'peerStore' , persistentPeerStore ( components , {
90
- addressFilter : this . components . connectionGater . filterMultiaddrForPeer ,
91
- ...init . peerStore
92
- } ) )
93
-
94
89
// Create Metrics
95
90
if ( init . metrics != null ) {
96
91
this . metrics = this . configureComponent ( 'metrics' , init . metrics ( this . components ) )
97
92
}
98
93
94
+ this . peerStore = this . configureComponent ( 'peerStore' , persistentPeerStore ( components , {
95
+ addressFilter : this . components . connectionGater . filterMultiaddrForPeer ,
96
+ ...init . peerStore
97
+ } ) )
98
+
99
99
components . events . addEventListener ( 'peer:update' , evt => {
100
100
// if there was no peer previously in the peer store this is a new peer
101
101
if ( evt . detail . previous == null ) {
You can’t perform that action at this time.
0 commit comments