Skip to content

Commit

Permalink
sdk: default eventstore to NullStore instead of SliceStore.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Oct 6, 2024
1 parent 36c197a commit f0f4eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/fiatjaf/eventstore"
"github.com/fiatjaf/eventstore/slicestore"
"github.com/fiatjaf/eventstore/nullstore"
"github.com/graph-gophers/dataloader/v7"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/sdk/cache"
Expand Down Expand Up @@ -95,7 +95,7 @@ func NewSystem(mods ...SystemModifier) *System {
}

if sys.Store == nil {
sys.Store = &slicestore.SliceStore{}
sys.Store = &nullstore.NullStore{}
sys.Store.Init()
}
sys.StoreRelay = eventstore.RelayWrapper{Store: sys.Store}
Expand Down

0 comments on commit f0f4eb5

Please sign in to comment.