mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fixing a few go-vet issues
Signed-off-by: Madhu Venugopal <madhu@docker.com>
This commit is contained in:
parent
976c5bf0fa
commit
9d1cc7d56a
2 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ func (te *testEndpoint) SetResolvConfPath(path string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (te *testEndpoint) AddStaticRoute(destination *net.IPNet, routeType int, nextHop net.IP, interfaceID int) error {
|
func (te *testEndpoint) AddStaticRoute(destination *net.IPNet, routeType int, nextHop net.IP, interfaceID int) error {
|
||||||
te.routes = append(te.routes, types.StaticRoute{destination, routeType, nextHop, interfaceID})
|
te.routes = append(te.routes, types.StaticRoute{Destination: destination, RouteType: routeType, NextHop: nextHop, InterfaceID: interfaceID})
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ func (ep *endpoint) AddStaticRoute(destination *net.IPNet, routeType int, nextHo
|
||||||
ep.Lock()
|
ep.Lock()
|
||||||
defer ep.Unlock()
|
defer ep.Unlock()
|
||||||
|
|
||||||
r := types.StaticRoute{destination, routeType, nextHop, interfaceID}
|
r := types.StaticRoute{Destination: destination, RouteType: routeType, NextHop: nextHop, InterfaceID: interfaceID}
|
||||||
|
|
||||||
if routeType == types.NEXTHOP {
|
if routeType == types.NEXTHOP {
|
||||||
// If the route specifies a next-hop, then it's loosely routed (i.e. not bound to a particular interface).
|
// If the route specifies a next-hop, then it's loosely routed (i.e. not bound to a particular interface).
|
||||||
|
|
Loading…
Add table
Reference in a new issue