Skip to content

Commit

Permalink
ipam/multipool: Fix comment for removeExpiration
Browse files Browse the repository at this point in the history
The comment for removeExpiration is still using startExpiration.
Looks like it's just a copy-paste error.

Signed-off-by: Huagong Wang <[email protected]>
  • Loading branch information
Huagong Wang authored and julianwiedmann committed Sep 15, 2023
1 parent 2b4f6df commit d2be494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ipam/multipool.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (p pendingAllocationsPerOwner) startExpirationAt(now time.Time, owner strin
p[family] = expires
}

// startExpiration removes the expiration timer for a pending allocation, this
// removeExpiration removes the expiration timer for a pending allocation, this
// happens either because the timer expired, or the allocation was fulfilled
func (p pendingAllocationsPerOwner) removeExpiration(owner string, family Family) {
delete(p[family], owner)
Expand Down

0 comments on commit d2be494

Please sign in to comment.