eventstore/bleve: replace with implementation inspired from pyramid.
This commit is contained in:
@@ -28,6 +28,8 @@ type BoltBackend struct {
|
||||
MapSize int64
|
||||
DB *bbolt.DB
|
||||
|
||||
ReadOnly bool
|
||||
|
||||
EnableHLLCacheFor func(kind nostr.Kind) (useCache bool, skipSavingActualEvent bool)
|
||||
}
|
||||
|
||||
@@ -36,6 +38,7 @@ func (b *BoltBackend) Init() error {
|
||||
Timeout: 2 * time.Second,
|
||||
PreLoadFreelist: true,
|
||||
FreelistType: bbolt.FreelistMapType,
|
||||
ReadOnly: b.ReadOnly,
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user