mirror of
https://github.com/fiatjaf/nak.git
synced 2024-10-30 09:09:08 -04:00
fix for nil error case on publish.
This commit is contained in:
parent
bfa72640cd
commit
2d1e27f766
3
event.go
3
event.go
|
@ -222,7 +222,8 @@ example:
|
||||||
ctx, cancel := context.WithTimeout(c.Context, 10*time.Second)
|
ctx, cancel := context.WithTimeout(c.Context, 10*time.Second)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
if err := relay.Publish(ctx, evt); err == nil {
|
err := relay.Publish(ctx, evt)
|
||||||
|
if err == nil {
|
||||||
// published fine
|
// published fine
|
||||||
log("success.\n")
|
log("success.\n")
|
||||||
continue nextline
|
continue nextline
|
||||||
|
|
Loading…
Reference in New Issue
Block a user