缓存任务忽略连接API错误

This commit is contained in:
刘祥超
2022-08-20 08:15:16 +08:00
parent 1a1280b76e
commit d74e10c7a8

View File

@@ -106,6 +106,10 @@ func (this *HTTPCacheTaskManager) Loop() error {
resp, err := rpcClient.HTTPCacheTaskKeyRPC().FindDoingHTTPCacheTaskKeys(rpcClient.Context(), &pb.FindDoingHTTPCacheTaskKeysRequest{}) resp, err := rpcClient.HTTPCacheTaskKeyRPC().FindDoingHTTPCacheTaskKeys(rpcClient.Context(), &pb.FindDoingHTTPCacheTaskKeysRequest{})
if err != nil { if err != nil {
// 忽略连接错误
if rpc.IsConnError(err) {
return nil
}
return err return err
} }