Fixed lint and staticcheck oversights
Kubernetes-commit: e10acc78dee5d90d93fc7bc0e76e97bc7bc0b3a3
This commit is contained in:
		
							parent
							
								
									f3604043e9
								
							
						
					
					
						commit
						cd34d8d0ce
					
				|  | @ -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 { | ||||
|  |  | |||
|  | @ -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.
 | ||||
|  |  | |||
|  | @ -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, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue