From 4135b3729bb4084997fa1506f56f72f3a166e45d Mon Sep 17 00:00:00 2001 From: rainzm Date: Tue, 1 Dec 2020 14:35:04 +0800 Subject: [PATCH] fix(notify): return the result of the second attempt to execute the rpc call --- pkg/notify/rpc/send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/notify/rpc/send.go b/pkg/notify/rpc/send.go index ccdfa33a76..761ffd23cb 100644 --- a/pkg/notify/rpc/send.go +++ b/pkg/notify/rpc/send.go @@ -238,7 +238,7 @@ func (self *SRpcService) execute(ctx context.Context, f func(client *apis.SendNo return nil, errors.Wrapf(err, "restart service %s failed", serviceName) } - _, err := f(sendService) + ret, err = f(sendService) if err != nil { st := status.Convert(err) if st.Code() == codes.Unavailable {