Skip to content

Commit

Permalink
gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
ZetaoZhuang committed Jun 4, 2024
1 parent fa7dbed commit 9eb54c3
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 18 deletions.
21 changes: 12 additions & 9 deletions cns/grpc/v1alpha/server.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions cns/grpc/v1alpha/server_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion cns/metric/heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ func SendHeartBeat(ctx context.Context, heartbeatInterval time.Duration, homeAzM
metric.CustomDimensions[logger.HomeAZStr] = strconv.FormatUint(uint64(getHomeAzResp.HomeAzResponse.HomeAz), 10)
}
}

logger.SendMetric(metric)
}
}
Expand Down
6 changes: 4 additions & 2 deletions netio/netio.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ type NetIOInterface interface {
}

// ErrInterfaceNil - errors out when interface is nil
var ErrInterfaceNil = errors.New("Interface is nil")
var ErrInterfaceNotFound = errors.New("Inteface not found")
var (
ErrInterfaceNil = errors.New("Interface is nil")
ErrInterfaceNotFound = errors.New("Inteface not found")
)

type NetIO struct{}

Expand Down
1 change: 0 additions & 1 deletion network/endpoint_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ func (nw *network) deleteEndpointImpl(nl netlink.NetlinkInterface, plc platform.
epInfo := ep.getInfo()
if nw.Mode == opModeTransparentVlan {
epClient = NewTransparentVlanEndpointClient(nw, epInfo, ep.HostIfName, "", ep.VlanID, ep.LocalIP, nl, plc, nsc, iptc)

} else {
epClient = NewOVSEndpointClient(nw, epInfo, ep.HostIfName, "", ep.VlanID, ep.LocalIP, nl, ovsctl.NewOvsctl(), plc, iptc)
}
Expand Down
1 change: 0 additions & 1 deletion network/endpoint_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func TestNewAndDeleteEndpointImplHnsV2(t *testing.T) {
}

err = nw.deleteEndpointImplHnsV2(endpoint)

if err != nil {
fmt.Printf("+%v", err)
t.Fatal(err)
Expand Down
2 changes: 0 additions & 2 deletions network/network_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func TestNewAndDeleteNetworkImplHnsV2(t *testing.T) {
}

err = nm.deleteNetworkImplHnsV2(network)

if err != nil {
fmt.Printf("+%v", err)
t.Fatal(err)
Expand Down Expand Up @@ -87,7 +86,6 @@ func TestSuccesfulNetworkCreationWhenAlreadyExists(t *testing.T) {
}

_, err = nm.newNetworkImplHnsV2(nwInfo, extInterface)

if err != nil {
fmt.Printf("+%v", err)
t.Fatal(err)
Expand Down

0 comments on commit 9eb54c3

Please sign in to comment.