This repository was archived by the owner on Jul 21, 2023. It is now read-only.
Commit e12e540 1 parent a94f4d4 commit e12e540 Copy full SHA for e12e540
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class Path {
73
73
74
74
// The paths must be disjoint, meaning that no two paths in the Query may
75
75
// traverse the same peer
76
- if ( this . run . peersSeen . has ( peer ) ) {
76
+ if ( this . run . peersSeen . has ( peer . toB58String ( ) ) ) {
77
77
return
78
78
}
79
79
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ class WorkerQueue {
128
128
129
129
// The paths must be disjoint, meaning that no two paths in the Query may
130
130
// traverse the same peer
131
- if ( this . run . peersSeen . has ( peer ) ) {
131
+ if ( this . run . peersSeen . has ( peer . toB58String ( ) ) ) {
132
132
return
133
133
}
134
134
@@ -158,10 +158,10 @@ class WorkerQueue {
158
158
}
159
159
160
160
// Check if another path has queried this peer in the mean time
161
- if ( this . run . peersSeen . has ( peer ) ) {
161
+ if ( this . run . peersSeen . has ( peer . toB58String ( ) ) ) {
162
162
return
163
163
}
164
- this . run . peersSeen . add ( peer )
164
+ this . run . peersSeen . add ( peer . toB58String ( ) )
165
165
166
166
// Execute the query on the next peer
167
167
this . log ( 'queue:work' )
You can’t perform that action at this time.
0 commit comments