nullstore doesn't have to have a pointer receiver.

This commit is contained in:
fiatjaf
2023-11-05 19:53:50 -03:00
parent 23d76dcea2
commit da19fdcc10

View File

@@ -7,11 +7,11 @@ import (
"github.com/nbd-wtf/go-nostr" "github.com/nbd-wtf/go-nostr"
) )
var _ eventstore.Store = (*NullStore)(nil) var _ eventstore.Store = NullStore{}
type NullStore struct{} type NullStore struct{}
func (b *NullStore) Init() error { func (b NullStore) Init() error {
return nil return nil
} }