@@ -44,15 +44,15 @@ var _ volume.Attacher = &cinderDiskAttacher{}
4444var _ volume.AttachableVolumePlugin = & cinderPlugin {}
4545
4646const (
47- probeVolumeInitDealy = 1 * time .Second
47+ probeVolumeInitDelay = 1 * time .Second
4848 probeVolumeFactor = 2.0
49- operationFinishInitDealy = 1 * time .Second
49+ operationFinishInitDelay = 1 * time .Second
5050 operationFinishFactor = 1.1
5151 operationFinishSteps = 10
52- diskAttachInitDealy = 1 * time .Second
52+ diskAttachInitDelay = 1 * time .Second
5353 diskAttachFactor = 1.2
5454 diskAttachSteps = 15
55- diskDetachInitDealy = 1 * time .Second
55+ diskDetachInitDelay = 1 * time .Second
5656 diskDetachFactor = 1.2
5757 diskDetachSteps = 13
5858)
@@ -75,7 +75,7 @@ func (plugin *cinderPlugin) GetDeviceMountRefs(deviceMountPath string) ([]string
7575
7676func (attacher * cinderDiskAttacher ) waitOperationFinished (volumeID string ) error {
7777 backoff := wait.Backoff {
78- Duration : operationFinishInitDealy ,
78+ Duration : operationFinishInitDelay ,
7979 Factor : operationFinishFactor ,
8080 Steps : operationFinishSteps ,
8181 }
@@ -100,7 +100,7 @@ func (attacher *cinderDiskAttacher) waitOperationFinished(volumeID string) error
100100
101101func (attacher * cinderDiskAttacher ) waitDiskAttached (instanceID , volumeID string ) error {
102102 backoff := wait.Backoff {
103- Duration : diskAttachInitDealy ,
103+ Duration : diskAttachInitDelay ,
104104 Factor : diskAttachFactor ,
105105 Steps : diskAttachSteps ,
106106 }
@@ -235,12 +235,12 @@ func (attacher *cinderDiskAttacher) WaitForAttach(spec *volume.Spec, devicePath
235235 return "" , fmt .Errorf ("WaitForAttach failed for Cinder disk %q: devicePath is empty." , volumeID )
236236 }
237237
238- ticker := time .NewTicker (probeVolumeInitDealy )
238+ ticker := time .NewTicker (probeVolumeInitDelay )
239239 defer ticker .Stop ()
240240 timer := time .NewTimer (timeout )
241241 defer timer .Stop ()
242242
243- duration := probeVolumeInitDealy
243+ duration := probeVolumeInitDelay
244244 for {
245245 select {
246246 case <- ticker .C :
@@ -334,7 +334,7 @@ func (plugin *cinderPlugin) NewDetacher() (volume.Detacher, error) {
334334
335335func (detacher * cinderDiskDetacher ) waitOperationFinished (volumeID string ) error {
336336 backoff := wait.Backoff {
337- Duration : operationFinishInitDealy ,
337+ Duration : operationFinishInitDelay ,
338338 Factor : operationFinishFactor ,
339339 Steps : operationFinishSteps ,
340340 }
@@ -359,7 +359,7 @@ func (detacher *cinderDiskDetacher) waitOperationFinished(volumeID string) error
359359
360360func (detacher * cinderDiskDetacher ) waitDiskDetached (instanceID , volumeID string ) error {
361361 backoff := wait.Backoff {
362- Duration : diskDetachInitDealy ,
362+ Duration : diskDetachInitDelay ,
363363 Factor : diskDetachFactor ,
364364 Steps : diskDetachSteps ,
365365 }
0 commit comments