Skip to content

Commit e10acc7

Browse files
committed
Fixed lint and staticcheck oversights
1 parent 8c28073 commit e10acc7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ import (
3434
"k8s.io/klog"
3535
)
3636

37+
const nsTimeFmt = "2006-01-02 15:04:05.000000000"
38+
3739
// queueSetFactory implements the QueueSetFactory interface
3840
// queueSetFactory makes QueueSet objects.
3941
type queueSetFactory struct {

staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ type uniformClient struct {
4242
thinkDuration time.Duration
4343
}
4444

45-
const nsTimeFmt = "2006-01-02 15:04:05.000000000"
46-
4745
// exerciseQueueSetUniformScenario runs a scenario based on the given set of uniform clients.
4846
// Each uniform client specifies a number of threads, each of which alternates between thinking
4947
// and making a synchronous request through the QueueSet.

staging/src/k8s.io/apiserver/pkg/util/promise/lockingpromise/lockingpromise.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ type lockingPromise struct {
3838

3939
var _ promise.LockingMutable = &lockingPromise{}
4040

41+
// NewLockingPromise makes a new promise.LockingMutable
4142
func NewLockingPromise(lock sync.Locker, activeCounter counter.GoRoutineCounter) promise.LockingMutable {
4243
return &lockingPromise{
4344
lock: lock,

0 commit comments

Comments
 (0)