Skip to content

Commit

Permalink
strfry: it always had the ReplaceEvent() feature built in, so make th…
Browse files Browse the repository at this point in the history
…at explicit for performance.
  • Loading branch information
fiatjaf committed Dec 11, 2024
1 parent 2496916 commit 9844857
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions strfry/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ func (s StrfryBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (ch
return ch, nil
}

func (s *StrfryBackend) ReplaceEvent(ctx context.Context, evt *nostr.Event) error {
return s.SaveEvent(ctx, evt)
}

func (s StrfryBackend) SaveEvent(ctx context.Context, evt *nostr.Event) error {
args := make([]string, 0, 4)
if s.ConfigPath != "" {
Expand Down

0 comments on commit 9844857

Please sign in to comment.