Skip to content

Commit

Permalink
delete bolt.
Browse files Browse the repository at this point in the history
aside from other bugs that have happened before, this one:

https://cdn.satellite.earth/25a4bc5c9fd7617cdcba309a552d227283fb2d36aa75f47b12c0b83510c4de88.png

is caused directly by bbolt's `unsafe` usage.

something wrong is not right inside bbolt's codebase and I don't think it's worth trying to solve it.

bolt is kinda annoying anyway, like it blocks the database and makes things hang forever, has some
weird locking and stuff. so if people want a pure-go setup they can use badger, and if they want better
read performance they should use LMDB. bolt is unnecessary.
  • Loading branch information
fiatjaf committed Aug 24, 2024
1 parent 6cc101b commit 4bf28fc
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 722 deletions.
6 changes: 3 additions & 3 deletions bluge/bluge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import (
"os"
"testing"

"github.com/fiatjaf/eventstore/bolt"
"github.com/fiatjaf/eventstore/badger"
"github.com/nbd-wtf/go-nostr"
"github.com/stretchr/testify/assert"
)

func TestBlugeFlow(t *testing.T) {
os.RemoveAll("/tmp/blugetest-bolt")
os.RemoveAll("/tmp/blugetest-badger")
os.RemoveAll("/tmp/blugetest-bluge")

bb := &bolt.BoltBackend{Path: "/tmp/blugetest-bolt"}
bb := &badger.BadgerBackend{Path: "/tmp/blugetest-badger"}
bb.Init()
defer bb.Close()

Expand Down
71 changes: 0 additions & 71 deletions bolt/count.go

This file was deleted.

37 changes: 0 additions & 37 deletions bolt/delete.go

This file was deleted.

114 changes: 0 additions & 114 deletions bolt/helpers.go

This file was deleted.

106 changes: 0 additions & 106 deletions bolt/lib.go

This file was deleted.

32 changes: 0 additions & 32 deletions bolt/migration.go

This file was deleted.

Loading

0 comments on commit 4bf28fc

Please sign in to comment.