appleboy / gorush

A push notification server written in Go (Golang).
MIT License
7.99k stars 841 forks source link

sending notifications does not work via gRPC, got context canceled error, latest version? #790

Closed arllen133 closed 2 months ago

arllen133 commented 3 months ago
    go func() {
        _, err := notify.SendNotification(ctx, &notification, s.cfg)
        if err != nil {
            logx.LogError.Error(err)
        }
    }()

ctx will canceled when rpc request return, cause goroutine finished

appleboy commented 3 months ago

I will take it.

supersida159 commented 2 months ago

i have same issue so should i downgrade version ?

arllen133 commented 2 months ago

i have same issue so should i downgrade version ?

yes, or fork and fixed it

appleboy commented 2 months ago

I will test it asap.