Skip to content

Commit d248c8f

Browse files
author
Hantao (Will) Wang
committed
go fmt
1 parent c8759d2 commit d248c8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/gce-pd-csi-driver/node.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (ns *GCENodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePub
7272
if volumeCapability == nil {
7373
return nil, status.Error(codes.InvalidArgument, "NodePublishVolume Volume Capability must be provided")
7474
}
75-
75+
7676
if acquired := ns.volumeLocks.TryAcquire(volumeID); !acquired {
7777
return nil, status.Errorf(codes.Aborted, common.VolumeOperationAlreadyExistsFmt, volumeID)
7878
}
@@ -301,7 +301,7 @@ func (ns *GCENodeServer) NodeStageVolume(ctx context.Context, req *csi.NodeStage
301301
if err != nil {
302302
return nil, status.Error(codes.Internal,
303303
fmt.Sprintf("Failed to format and mount device from (%q) to (%q) with fstype (%q) and options (%q): %v",
304-
devicePath, stagingTargetPath, fstype, options, err))e
304+
devicePath, stagingTargetPath, fstype, options, err))
305305
}
306306

307307
return &csi.NodeStageVolumeResponse{}, nil
@@ -320,7 +320,7 @@ func (ns *GCENodeServer) NodeUnstageVolume(ctx context.Context, req *csi.NodeUns
320320
return nil, status.Error(codes.InvalidArgument, "NodeUnstageVolume Staging Target Path must be provided")
321321
}
322322

323-
if acquired := ns.volumes.TryAcquire(volumeID); !acquired {
323+
if acquired := ns.volumeLocks.TryAcquire(volumeID); !acquired {
324324
return nil, status.Error(codes.Aborted, fmt.Sprintf("An operation with the given Volume ID %s already exists", volumeID))
325325
}
326326
defer ns.volumeLocks.Release(volumeID)

0 commit comments

Comments
 (0)