Skip to content

Commit dc909e8

Browse files
committed
fix
Signed-off-by: clyi <clyi@alauda.io>
1 parent ca1dfb1 commit dc909e8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

pkg/daemon/controller_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func routeDiff(existingRoutes, v4Cidrs, v6Cidrs []string) (toAddV4, toAddV6, toD
147147
return
148148
}
149149

150-
func (c *Controller) handleDeletePod(event *podEvent) error {
150+
func (c *Controller) handleDeletePod(_ any) error {
151151
return nil
152152
}
153153

pkg/daemon/flow_sync_linux.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package daemon
22

33
import (
4+
"errors"
45
"fmt"
56
"strconv"
67
"strings"
@@ -172,7 +173,7 @@ func (c *Controller) runFlowSync(stopCh <-chan struct{}) {
172173

173174
func (c *Controller) getPortID(bridgeName, portName string) (int, error) {
174175
if c.ovsClient == nil {
175-
return 0, fmt.Errorf("ovs client not initialized")
176+
return 0, errors.New("ovs client not initialized")
176177
}
177178

178179
portInfo, err := c.ovsClient.OpenFlow.DumpPort(bridgeName, portName)

0 commit comments

Comments
 (0)