• k8s-merge-robot's avatar
    Merge pull request #29598 from matttproud/refactor/simplify/goroutinemap · 62e7c57a
    k8s-merge-robot authored
    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 
    62e7c57a
Name
Last commit
Last update
..
nestedpendingoperations Loading commit data...
operationexecutor Loading commit data...
types Loading commit data...
volumehelper Loading commit data...
atomic_writer.go Loading commit data...
atomic_writer_test.go Loading commit data...
device_util.go Loading commit data...
device_util_linux.go Loading commit data...
device_util_linux_test.go Loading commit data...
device_util_unsupported.go Loading commit data...
doc.go Loading commit data...
fs.go Loading commit data...
fs_unsupported.go Loading commit data...
io_util.go Loading commit data...
util.go Loading commit data...