diff --git a/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectLock.cs b/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectLock.cs index cddceff5b..e2540482f 100644 --- a/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectLock.cs +++ b/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectLock.cs @@ -10,9 +10,9 @@ public abstract class MetaObjectLock : ILock private T metaObjCache; /// - /// OnError is called when there is a http operation error. + /// OnHttpError is called when there is a http operation error. /// - public event Action OnError; + public event Action OnHttpError; protected MetaObjectLock(IKubernetes client, string @namespace, string name, string identity) { @@ -54,7 +54,7 @@ public async Task CreateAsync(LeaderElectionRecord record, CancellationTok } catch (HttpOperationException e) { - OnError?.Invoke(e); + OnHttpError?.Invoke(e); // ignore } @@ -87,7 +87,7 @@ public async Task UpdateAsync(LeaderElectionRecord record, CancellationTok } catch (HttpOperationException e) { - OnError?.Invoke(e); + OnHttpError?.Invoke(e); // ignore }