Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mccv1r0 committed Oct 15, 2018
1 parent 8a40357 commit 9663a79
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/ipam/dhcp/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ func newDHCP() *DHCP {
}

func generateClientID(containerID string, netName string, ifName string) string {
clientID := containerID + "/" + netName + "/" + ifName

return clientID
return containerID + "/" + netName + "/" + ifName
}

// Allocate acquires an IP from a DHCP server for a specified container.
Expand Down Expand Up @@ -118,7 +116,6 @@ func (d *DHCP) getLease(clientID string) *DHCPLease {
return l
}

//func (d *DHCP) setLease(contID, netName string, ifName string, l *DHCPLease) {
func (d *DHCP) setLease(clientID string, l *DHCPLease) {
d.mux.Lock()
defer d.mux.Unlock()
Expand Down

0 comments on commit 9663a79

Please sign in to comment.