Skip to content

Commit e396bd9

Browse files
committed
Updated event name
1 parent 4835a2c commit e396bd9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectLock.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ public abstract class MetaObjectLock<T> : ILock
1010
private T metaObjCache;
1111

1212
/// <summary>
13-
/// OnError is called when there is a http operation error.
13+
/// OnHttpError is called when there is a http operation error.
1414
/// </summary>
15-
public event Action<HttpOperationException> OnError;
15+
public event Action<HttpOperationException> OnHttpError;
1616

1717
protected MetaObjectLock(IKubernetes client, string @namespace, string name, string identity)
1818
{
@@ -54,7 +54,7 @@ public async Task<bool> CreateAsync(LeaderElectionRecord record, CancellationTok
5454
}
5555
catch (HttpOperationException e)
5656
{
57-
OnError?.Invoke(e);
57+
OnHttpError?.Invoke(e);
5858
// ignore
5959
}
6060

@@ -87,7 +87,7 @@ public async Task<bool> UpdateAsync(LeaderElectionRecord record, CancellationTok
8787
}
8888
catch (HttpOperationException e)
8989
{
90-
OnError?.Invoke(e);
90+
OnHttpError?.Invoke(e);
9191
// ignore
9292
}
9393

0 commit comments

Comments
 (0)