Fix non-unique subId for REQs

This commit is contained in:
artur 2024-03-17 11:39:14 +03:00 committed by Mike Heier
parent 1ab11a5013
commit 018dda8a1a

View File

@ -331,7 +331,7 @@ function createPubkeySub(r) {
[requestFilter, replyFilter],
{
closeOnEose: false,
subId: `pubkeys_${Date.now()}_${pubkeys.length}`,
subId: `pubkeys_${Math.random()}`,
},
NDKRelaySet.fromRelayUrls([r.url], ndk),
/* autoStart */ false