Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
halfcrazy committed Sep 19, 2023
1 parent bbfce10 commit e738fc6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions cmd/stress/stress.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,20 @@ type bridgeType struct {
Status map[string]string `ovsdb:"status"`
}

func (b *bridgeType) Table() string {
return "Bridge"
}

// ORMovs is the simplified ORM model of the Bridge table
type ovsType struct {
UUID string `ovsdb:"_uuid"`
Bridges []string `ovsdb:"bridges"`
}

func (o *ovsType) Table() string {
return "Open_vSwitch"
}

var (
cpuprofile = flag.String("cpuprofile", "", "write cpu profile to this file")
memprofile = flag.String("memoryprofile", "", "write memory profile to this file")
Expand Down
2 changes: 1 addition & 1 deletion test/test_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ type OvsType struct {
}

func (o *OvsType) Table() string {
return "OVS"
return "Open_vSwitch"
}

type FlowSampleCollectorSetType struct {
Expand Down

0 comments on commit e738fc6

Please sign in to comment.