Skip to content

Commit

Permalink
style: Fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed Sep 27, 2024
1 parent a39afff commit 7965efb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/structset/structset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type testStruct struct {
ID int `json:"-" sql:"id"`
Field1 string `json:"field1,omitempty" sql:"f1"`
Field2 bool `json:"field2" sql:"f2"`
Field3 interface{} ` sql:"f3"`
Field3 interface{} `sql:"f3"`
Field4 []string `json:"field4" sql:"f4"`
}

Expand Down
8 changes: 4 additions & 4 deletions pkg/api/models/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,10 @@ type CLIConfig struct {
type Cluster struct {
ID string `json:"id" sql:"cluster_id" yaml:"id"`
Manager string `json:"manager" sql:"resource_manager" yaml:"manager"`
Web WebConfig `json:"-" yaml:"web"`
CLI CLIConfig `json:"-" yaml:"cli"`
Updaters []string `json:"-" yaml:"updaters"`
Extra yaml.Node `json:"-" yaml:"extra_config"`
Web WebConfig `json:"-" yaml:"web"`
CLI CLIConfig `json:"-" yaml:"cli"`
Updaters []string `json:"-" yaml:"updaters"`
Extra yaml.Node `json:"-" yaml:"extra_config"`
}

// ClusterUnits is the container for the units and config of a given cluster.
Expand Down
1 change: 1 addition & 0 deletions pkg/lb/backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ outside:
//
// Make query parameters
step := time.Duration(period) / 5000

urlValues := url.Values{
"query": []string{fmt.Sprintf(`up{instance="%s:%s"}`, b.url.Hostname(), b.url.Port())},
"start": []string{time.Now().Add(-time.Duration(period)).UTC().Format(time.RFC3339Nano)},
Expand Down

0 comments on commit 7965efb

Please sign in to comment.