fix(notify): return the result of the second attempt to execute the rpc call

This commit is contained in:
rainzm
2020-12-01 14:35:04 +08:00
parent 3a6713a5d5
commit 4135b3729b
+1 -1
View File
@@ -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 {