mirror of https://github.com/k3s-io/k3s
Merge pull request #46052 from davidewatson/spelling
Automatic merge from submit-queue Correct spelling in comment **What this PR does / why we need it**: Corrects two misspelled names in a comment. **Which issue this PR fixes**: N/A **Special notes for your reviewer**: NONE **Release note**: NONEpull/6/head
commit
8d0cce3f91
|
@ -71,7 +71,7 @@ const (
|
|||
DefaultRetryPeriod = 2 * time.Second
|
||||
)
|
||||
|
||||
// NewLeadereElector creates a LeaderElector from a LeaderElecitionConfig
|
||||
// NewLeaderElector creates a LeaderElector from a LeaderElectionConfig
|
||||
func NewLeaderElector(lec LeaderElectionConfig) (*LeaderElector, error) {
|
||||
if lec.LeaseDuration <= lec.RenewDeadline {
|
||||
return nil, fmt.Errorf("leaseDuration must be greater than renewDeadline")
|
||||
|
|
Loading…
Reference in New Issue