fiatjaf
98fa53464e
pool: proper filter scope in subMany()
2026-04-11 19:24:08 -03:00
fiatjaf
29cdd48fcb
eventstore: adapt test to ReplaceEvent() signature change.
2026-04-11 15:36:09 -03:00
fiatjaf
181de14642
lmdb: two small fixes, and stop doing WRITEMAP so it stops crashing.
2026-04-11 15:24:37 -03:00
fiatjaf
1794f0690f
bleve: open timeout option.
2026-04-11 02:03:58 -03:00
fiatjaf
12af4717d4
pool: penalty box as a xsync map because mutexes are too hard.
2026-04-11 01:55:18 -03:00
fiatjaf
b989b66bb7
change ReplaceEvent() interface to return a list of the events deleted.
2026-04-10 11:56:08 -03:00
fiatjaf
4261bc88f8
eventstore/bleve: replace with implementation inspired from pyramid.
2026-04-10 11:25:42 -03:00
fiatjaf
a8205a3790
add relay.primal.net as another fallback big relay for outbox.
2026-04-10 10:00:03 -03:00
fiatjaf
0152341144
eventstore/lmdb: remove unused lastIdx code.
2026-04-08 21:45:10 -03:00
fiatjaf
9bf9816c15
pool: open new connections whenever a subscription limit is reached, reuse multiple simultaneous relay connections.
2026-04-07 18:13:05 -03:00
fiatjaf
82f2fbdb99
sdk: a bunch of more list loaders.
2026-04-07 17:39:21 -03:00
fiatjaf
d5b54a1c91
negentropy: fix varint encoding.
2026-04-07 17:20:10 -03:00
fiatjaf
637412fd38
relay: check for subscription limits and error.
2026-04-07 12:09:00 -03:00
fiatjaf
9b881801d8
khatru: get rid of broken unused get-started.go helpers.
2026-04-04 09:20:03 -03:00
fiatjaf
371cecdb84
guard against nil connections on write to protect against concurrent listener removals.
2026-04-03 12:30:06 -03:00
fiatjaf
2735abe060
khatru: listener needed a xsync.Map instead of a map, because of concurrent access.
2026-04-03 08:27:00 -03:00
fiatjaf
b9a3e78752
mmm: print free ranges count.
2026-04-03 08:23:15 -03:00
fiatjaf
ff03090610
schema: update url.
2026-04-03 08:23:04 -03:00
fiatjaf
72a5be58d7
fix AppendUnique.
2026-04-02 03:29:56 -03:00
fiatjaf
2c30300756
mmm: use flock instead of file presence for locking the database.
2026-04-02 03:29:56 -03:00
fiatjaf
d1fdc262f2
mmm: reduce default mmap size.
2026-04-02 03:29:56 -03:00
fiatjaf
117a304f68
khatru: relay stats.
2026-04-02 03:29:56 -03:00
fiatjaf
ac2d4579f1
khatru: get rid of subrelays + segregated indexed listeners.
2026-04-02 03:29:56 -03:00
fiatjaf
56610a32e6
constant ints must be casted so they work with gomobile.
2026-03-29 09:15:33 -03:00
fiatjaf
d4940c7858
eventstore/mmm: use sync.Pool for tempResults.
2026-03-28 11:22:39 -03:00
fiatjaf
172e7890b9
khatru: use a channelmutex so we can fail to lock on addListener() if there's a disconnect.
2026-03-28 10:47:33 -03:00
fiatjaf
3acfbbca0a
nip34: grasp url helper.
2026-03-26 17:36:01 -03:00
fiatjaf
b5974cfa45
add nip34/git-natural-api, using the same approach as https://jsr.io/@fiatjaf/git-natural-api .
2026-03-25 15:58:31 -03:00
fiatjaf
c74ac74a0e
use sync.Once to prevent duplicated AUTH attempts on the same relays.
2026-03-25 15:28:17 -03:00
fiatjaf
ec6f3f8a41
.Count() to handle CLOSED messages and support AUTH like .Subscribe().
2026-03-25 11:46:36 -03:00
fiatjaf
d43fbbf02d
eventstore: fix lmdb and mmm ptag-kind queries.
...
the prefix was missing the 2 bytes of the kind when preparing the query.
we also simplify the query planner logic a little bit and eliminate some useless fields and everything is clearer.
2026-03-23 00:23:38 -03:00
fiatjaf
6a686c31af
eventstore: add test for ptag filter with until clause.
...
following nostr:nevent1qvzqqqqqqypzq3svyhng9ld8sv44950j957j9vchdktj7cxumsep9mvvjthc2pjuqy0hwumn8ghj7urewfsk66ty9enxjct5dfskvtnrdakj76twvfhhsqgawaehxw309aehqct5d9sj6ctjvdskucfwvdhk6tmfde3x77qqyqspzxnz3g0sway64qpjkszxx0qv666sce30dymn5mw467j709zejjvtka2
2026-03-23 00:23:23 -03:00
fiatjaf
a6fdcd8b30
blossom: display body when upload fails and no reason is given.
2026-03-22 12:49:59 -03:00
fiatjaf
e675f04bd2
maybe this is not necessary? prevent WriteWithError from getting stuck.
2026-03-20 20:27:24 -03:00
fiatjaf
0630bbe4e9
fix another dead relay issue (relays dying but subscriptions living forever and not being reconnected).
2026-03-20 20:26:59 -03:00
fiatjaf
55c5194bdf
schema: fix tests.
2026-03-20 20:26:12 -03:00
fiatjaf
f3f5c3982d
nip29: fix printing.
2026-03-20 20:10:07 -03:00
fiatjaf
1520264394
nip54: update d-tag normalization rules.
2026-03-18 19:12:40 -03:00
fiatjaf
2cec1c9434
eliminate readQueue stuck channel on relay close.
2026-03-14 05:53:16 -03:00
fiatjaf
6cbe984e16
eliminate closedMutex and closeNotify because they are useless (apparently).
2026-03-14 05:31:48 -03:00
fiatjaf
5a0b18e65a
add buffers to read and write queues.
2026-03-12 17:14:18 -03:00
fiatjaf
bb4093d834
nip29: supported_kinds and transition edit-metadata to be a PUT, not a PATCH.
2026-03-12 11:00:01 -03:00
fiatjaf
3bd059d1f9
nip29: livekit group live participants.
2026-03-11 16:06:36 -03:00
fiatjaf
681bd55e55
replace "no-text" with "supported_kinds".
2026-03-11 10:49:41 -03:00
fiatjaf
4e490879b5
khatru/policies: accept deletions even when they're not protected.
2026-03-09 22:37:26 -03:00
fiatjaf
4348c64b14
r.writeQueue doesn't have to be closed.
2026-03-08 22:58:36 -03:00
fiatjaf
2c0d9712e3
CompareRElayEvent() helpers.
2026-03-08 22:57:38 -03:00
fiatjaf
4719c0bc9f
khatru/policies: PreventNormalDuplicates() to consider "a" reactions too.
2026-03-06 01:04:46 -03:00
fiatjaf
163e59e1f1
nip29: fix "livekit" tag parsing.
2026-03-05 22:46:20 -03:00
fiatjaf
21ce0046c0
nip29: bring back negative tags in edit-metadata.
2026-03-04 23:24:48 -03:00