From f0f4eb52766a0c1da456f36841c5f687e34c7415 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 6 Oct 2024 15:53:52 -0300 Subject: [PATCH] sdk: default eventstore to NullStore instead of SliceStore. --- sdk/system.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/system.go b/sdk/system.go index dd0fac0..b6460ef 100644 --- a/sdk/system.go +++ b/sdk/system.go @@ -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" @@ -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}