eventstore/bleve: replace with implementation inspired from pyramid.

This commit is contained in:
fiatjaf
2026-04-10 11:18:40 -03:00
parent a8205a3790
commit 4261bc88f8
13 changed files with 805 additions and 189 deletions
+4 -1
View File
@@ -7,6 +7,7 @@ import (
"fiatjaf.com/nostr"
"fiatjaf.com/nostr/eventstore/lmdb"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestBleveFlow(t *testing.T) {
@@ -21,7 +22,9 @@ func TestBleveFlow(t *testing.T) {
Path: "/tmp/blevetest-bleve",
RawEventStore: bb,
}
bl.Init()
err := bl.Init()
require.NoError(t, err, "init")
defer bl.Close()
willDelete := make([]nostr.Event, 0, 3)