mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Automatic merge from submit-queue pkg/util/goroutinemap: apply idiomatic Go cleanups Package goroutinemap can be structurally simplified to be more idiomatic, concise, and free of error potential. No structural changes are made. It is unconventional declare `sync.Mutex` directly as a pointerized field in a parent structure. The `sync.Mutex` operates on pointer receivers of itself; and by relying on that, the types that contain those fields can be safely constructed using https://golang.org/ref/spec#The_zero_value semantic. The duration constants are already of type `time.Duration`, so re-declaring that is redundant. /CC: @saad-ali |
||
|---|---|---|
| .. | ||
| nestedpendingoperations | ||
| operationexecutor | ||
| types | ||
| volumehelper | ||
| atomic_writer.go | ||
| atomic_writer_test.go | ||
| device_util.go | ||
| device_util_linux.go | ||
| device_util_linux_test.go | ||
| device_util_unsupported.go | ||
| doc.go | ||
| fs.go | ||
| fs_unsupported.go | ||
| io_util.go | ||
| util.go | ||