缓存任务忽略连接API错误

This commit is contained in:
GoEdgeLab
2022-08-20 08:15:16 +08:00
parent d60fbdd1ae
commit 14d6d8e509

View File

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