18 lines
223 B
Go
18 lines
223 B
Go
package eventstore
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/nbd-wtf/go-nostr"
|
|
)
|
|
|
|
type Wrapper struct {
|
|
Storage
|
|
}
|
|
|
|
func (w Wrapper) InjectEvent(ctx context.Context, evt *nostr.Event) error {
|
|
w.SaveEvent(ctx, evt)
|
|
|
|
return nil
|
|
}
|