Skip to content

Commit b2ee2f9

Browse files
committed
style: gofmt -s -w .
1 parent ddd6ff4 commit b2ee2f9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

inputs/mysql/binlog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ func (ins *Instance) gatherBinlog(slist *types.SampleList, db *sql.DB, globalTag
8383
if err == nil {
8484
slist.PushSample(inputName, "binlog_file_number", value, tags)
8585
}
86-
}
86+
}

inputs/vsphere/throttled_exec.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type ThrottledExecutor struct {
1717
// number of concurrent jobs
1818
func NewThrottledExecutor(limit int) (*ThrottledExecutor, error) {
1919
if limit == 0 {
20-
return nil, fmt.Errorf("%s", "Limit must be > 0")
20+
return nil, fmt.Errorf("limit must be > 0")
2121
}
2222
return &ThrottledExecutor{limiter: make(chan struct{}, limit)}, nil
2323
}
@@ -43,4 +43,4 @@ func (t *ThrottledExecutor) Run(ctx context.Context, job func()) {
4343
// Wait blocks until all scheduled jobs have finished
4444
func (t *ThrottledExecutor) Wait() {
4545
t.wg.Wait()
46-
}
46+
}

0 commit comments

Comments
 (0)