mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Fixed lint and staticcheck oversights
This commit is contained in:
parent
8c2807319d
commit
e10acc78de
@ -34,6 +34,8 @@ import (
|
|||||||
"k8s.io/klog"
|
"k8s.io/klog"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const nsTimeFmt = "2006-01-02 15:04:05.000000000"
|
||||||
|
|
||||||
// queueSetFactory implements the QueueSetFactory interface
|
// queueSetFactory implements the QueueSetFactory interface
|
||||||
// queueSetFactory makes QueueSet objects.
|
// queueSetFactory makes QueueSet objects.
|
||||||
type queueSetFactory struct {
|
type queueSetFactory struct {
|
||||||
|
@ -42,8 +42,6 @@ type uniformClient struct {
|
|||||||
thinkDuration time.Duration
|
thinkDuration time.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
const nsTimeFmt = "2006-01-02 15:04:05.000000000"
|
|
||||||
|
|
||||||
// exerciseQueueSetUniformScenario runs a scenario based on the given set of uniform clients.
|
// 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
|
// Each uniform client specifies a number of threads, each of which alternates between thinking
|
||||||
// and making a synchronous request through the QueueSet.
|
// and making a synchronous request through the QueueSet.
|
||||||
|
@ -38,6 +38,7 @@ type lockingPromise struct {
|
|||||||
|
|
||||||
var _ promise.LockingMutable = &lockingPromise{}
|
var _ promise.LockingMutable = &lockingPromise{}
|
||||||
|
|
||||||
|
// NewLockingPromise makes a new promise.LockingMutable
|
||||||
func NewLockingPromise(lock sync.Locker, activeCounter counter.GoRoutineCounter) promise.LockingMutable {
|
func NewLockingPromise(lock sync.Locker, activeCounter counter.GoRoutineCounter) promise.LockingMutable {
|
||||||
return &lockingPromise{
|
return &lockingPromise{
|
||||||
lock: lock,
|
lock: lock,
|
||||||
|
Loading…
Reference in New Issue
Block a user