• 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
..
aws_ebs Loading commit data...
azure_file Loading commit data...
cephfs Loading commit data...
cinder Loading commit data...
configmap Loading commit data...
downwardapi Loading commit data...
empty_dir Loading commit data...
fc Loading commit data...
flexvolume Loading commit data...
flocker Loading commit data...
gce_pd Loading commit data...
git_repo Loading commit data...
glusterfs Loading commit data...
host_path Loading commit data...
iscsi Loading commit data...
nfs Loading commit data...
rbd Loading commit data...
secret Loading commit data...
testing Loading commit data...
util Loading commit data...
vsphere_volume Loading commit data...
OWNERS Loading commit data...
doc.go Loading commit data...
metrics_cached.go Loading commit data...
metrics_du.go Loading commit data...
metrics_du_test.go Loading commit data...
metrics_nil.go Loading commit data...
metrics_nil_test.go Loading commit data...
metrics_statfs.go Loading commit data...
plugins.go Loading commit data...
plugins_test.go Loading commit data...
util.go Loading commit data...
util_test.go Loading commit data...
volume.go Loading commit data...
volume_linux.go Loading commit data...
volume_unsupported.go Loading commit data...