Skip to content

Commit

Permalink
Updated event name
Browse files Browse the repository at this point in the history
  • Loading branch information
fh-tmccurdy committed Sep 17, 2024
1 parent 4835a2c commit e396bd9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public abstract class MetaObjectLock<T> : ILock
private T metaObjCache;

/// <summary>
/// OnError is called when there is a http operation error.
/// OnHttpError is called when there is a http operation error.
/// </summary>
public event Action<HttpOperationException> OnError;
public event Action<HttpOperationException> OnHttpError;

protected MetaObjectLock(IKubernetes client, string @namespace, string name, string identity)
{
Expand Down Expand Up @@ -54,7 +54,7 @@ public async Task<bool> CreateAsync(LeaderElectionRecord record, CancellationTok
}
catch (HttpOperationException e)
{
OnError?.Invoke(e);
OnHttpError?.Invoke(e);
// ignore
}

Expand Down Expand Up @@ -87,7 +87,7 @@ public async Task<bool> UpdateAsync(LeaderElectionRecord record, CancellationTok
}
catch (HttpOperationException e)
{
OnError?.Invoke(e);
OnHttpError?.Invoke(e);
// ignore
}

Expand Down

0 comments on commit e396bd9

Please sign in to comment.