Fixed lint and staticcheck oversights

Kubernetes-commit: e10acc78dee5d90d93fc7bc0e76e97bc7bc0b3a3
This commit is contained in:
Mike Spreitzer 2019-11-13 09:20:00 -05:00 committed by Kubernetes Publisher
parent f3604043e9
commit cd34d8d0ce
3 changed files with 3 additions and 2 deletions

View File

@ -34,6 +34,8 @@ import (
"k8s.io/klog"
)
const nsTimeFmt = "2006-01-02 15:04:05.000000000"
// queueSetFactory implements the QueueSetFactory interface
// queueSetFactory makes QueueSet objects.
type queueSetFactory struct {

View File

@ -42,8 +42,6 @@ type uniformClient struct {
thinkDuration time.Duration
}
const nsTimeFmt = "2006-01-02 15:04:05.000000000"
// exerciseQueueSetUniformScenario runs a scenario based on the given set of uniform clients.
// Each uniform client specifies a number of threads, each of which alternates between thinking
// and making a synchronous request through the QueueSet.

View File

@ -38,6 +38,7 @@ type lockingPromise struct {
var _ promise.LockingMutable = &lockingPromise{}
// NewLockingPromise makes a new promise.LockingMutable
func NewLockingPromise(lock sync.Locker, activeCounter counter.GoRoutineCounter) promise.LockingMutable {
return &lockingPromise{
lock: lock,