filter: reservoir sample the algo feed

so its not the same static 15 pubkeys

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-09-08 15:01:52 -07:00
parent c765b031e9
commit 0b4545d598
4 changed files with 33 additions and 35 deletions

15
Cargo.lock generated
View File

@@ -193,7 +193,7 @@ dependencies = [
"objc2-foundation 0.3.1",
"parking_lot",
"percent-encoding",
"windows-sys 0.52.0",
"windows-sys 0.59.0",
"x11rb",
]
@@ -246,7 +246,7 @@ dependencies = [
"enumflags2",
"futures-channel",
"futures-util",
"rand 0.9.1",
"rand 0.9.2",
"raw-window-handle",
"serde",
"serde_repr",
@@ -3542,6 +3542,7 @@ dependencies = [
"profiling",
"puffin",
"puffin_egui",
"rand 0.9.2",
"regex",
"secp256k1 0.30.0",
"serde",
@@ -3683,7 +3684,7 @@ dependencies = [
"nostrdb",
"notedeck",
"notedeck_ui",
"rand 0.9.1",
"rand 0.9.2",
"serde",
"serde_json",
"sha2",
@@ -4603,7 +4604,7 @@ dependencies = [
"bytes",
"getrandom 0.3.3",
"lru-slab",
"rand 0.9.1",
"rand 0.9.2",
"ring",
"rustc-hash 2.1.1",
"rustls",
@@ -4657,9 +4658,9 @@ dependencies = [
[[package]]
name = "rand"
version = "0.9.1"
version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97"
checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"
dependencies = [
"rand_chacha 0.9.0",
"rand_core 0.9.3",
@@ -6278,7 +6279,7 @@ dependencies = [
"http",
"httparse",
"log",
"rand 0.9.1",
"rand 0.9.2",
"rustls",
"rustls-pki-types",
"sha1",