Merge pull request #9104 from rainzm/notify/second_try

fix(notify): return the result of the second attempt to execute the rpc call
This commit is contained in:
Zexi Li
2020-12-01 21:03:11 +08:00
committed by GitHub
+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 {