File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
staging/src/k8s.io/apiserver/pkg/util
flowcontrol/fairqueuing/queueset Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ import (
34
34
"k8s.io/klog"
35
35
)
36
36
37
+ const nsTimeFmt = "2006-01-02 15:04:05.000000000"
38
+
37
39
// queueSetFactory implements the QueueSetFactory interface
38
40
// queueSetFactory makes QueueSet objects.
39
41
type queueSetFactory struct {
Original file line number Diff line number Diff line change @@ -42,8 +42,6 @@ type uniformClient struct {
42
42
thinkDuration time.Duration
43
43
}
44
44
45
- const nsTimeFmt = "2006-01-02 15:04:05.000000000"
46
-
47
45
// exerciseQueueSetUniformScenario runs a scenario based on the given set of uniform clients.
48
46
// Each uniform client specifies a number of threads, each of which alternates between thinking
49
47
// and making a synchronous request through the QueueSet.
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ type lockingPromise struct {
38
38
39
39
var _ promise.LockingMutable = & lockingPromise {}
40
40
41
+ // NewLockingPromise makes a new promise.LockingMutable
41
42
func NewLockingPromise (lock sync.Locker , activeCounter counter.GoRoutineCounter ) promise.LockingMutable {
42
43
return & lockingPromise {
43
44
lock : lock ,
You can’t perform that action at this time.
0 commit comments