mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
fix(notify): return the result of the second attempt to execute the rpc call
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user