mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
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:
@@ -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