wrap a line on relay_interface.go

This commit is contained in:
fiatjaf
2023-11-02 16:07:40 -03:00
parent 0c70a7a812
commit 8c0fd4c760

View File

@@ -44,7 +44,8 @@ func (w RelayWrapper) Publish(ctx context.Context, evt nostr.Event) (nostr.Statu
}
if previous := <-ch; previous != nil {
if err := w.Store.DeleteEvent(ctx, previous); err != nil {
return nostr.PublishStatusFailed, fmt.Errorf("failed to delete event for parameterized replacing: %w", err)
return nostr.PublishStatusFailed,
fmt.Errorf("failed to delete event for parameterized replacing: %w", err)
}
}
}