Leader Election doesn't properly report OnError (#1594)

Fixes #1593
This commit is contained in:
Boshi Lian
2024-11-11 07:14:46 -08:00
committed by GitHub
parent c3b3a08b31
commit a139dd594f

View File

@@ -163,10 +163,9 @@ namespace k8s.LeaderElection
{
if (e.Response.StatusCode != HttpStatusCode.NotFound)
{
OnError?.Invoke(e);
return false;
}
OnError?.Invoke(e);
}
if (oldLeaderElectionRecord?.AcquireTime == null ||