mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-17 18:29:30 +00:00
cleanup: remove unnecessary error return type
Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
parent
243a0fd0fb
commit
8fa3ac9fb3
@ -70,14 +70,14 @@ func NewNodeServer(
|
|||||||
d *csicommon.CSIDriver,
|
d *csicommon.CSIDriver,
|
||||||
t string,
|
t string,
|
||||||
nodeLabels, topology, crushLocationMap map[string]string,
|
nodeLabels, topology, crushLocationMap map[string]string,
|
||||||
) (*rbd.NodeServer, error) {
|
) *rbd.NodeServer {
|
||||||
cliReadAffinityMapOptions := util.ConstructReadAffinityMapOption(crushLocationMap)
|
cliReadAffinityMapOptions := util.ConstructReadAffinityMapOption(crushLocationMap)
|
||||||
ns := rbd.NodeServer{
|
ns := rbd.NodeServer{
|
||||||
DefaultNodeServer: csicommon.NewDefaultNodeServer(d, t, cliReadAffinityMapOptions, topology, nodeLabels),
|
DefaultNodeServer: csicommon.NewDefaultNodeServer(d, t, cliReadAffinityMapOptions, topology, nodeLabels),
|
||||||
VolumeLocks: util.NewVolumeLocks(),
|
VolumeLocks: util.NewVolumeLocks(),
|
||||||
}
|
}
|
||||||
|
|
||||||
return &ns, nil
|
return &ns
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run start a non-blocking grpc controller,node and identityserver for
|
// Run start a non-blocking grpc controller,node and identityserver for
|
||||||
|
Loading…
Reference in New Issue
Block a user