fix for nil error case on publish.

This commit is contained in:
fiatjaf 2023-12-10 20:49:08 -03:00
parent bfa72640cd
commit 2d1e27f766
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -222,7 +222,8 @@ example:
ctx, cancel := context.WithTimeout(c.Context, 10*time.Second)
defer cancel()
if err := relay.Publish(ctx, evt); err == nil {
err := relay.Publish(ctx, evt)
if err == nil {
// published fine
log("success.\n")
continue nextline