mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
csi: remove duplicate publish context lookup
This commit is contained in:
1 parent
0dce26d2b0
commit
e86ae93806
1 file changed
+1
-1
@@ -329,7 +329,7 @@ func (s *NodeServer) stageNVMe(ctx context.Context, req *csipb.NodeStageVolumeRe
|
||||
if addr == "" || nqn == "" {
|
||||
return nil, status.Error(codes.FailedPrecondition, "no NVMe publish target")
|
||||
}
|
||||
nvmeTransport, err := nvmeTransportFromContexts(publishContext, req.GetPublishContext(), req.GetVolumeContext())
|
||||
nvmeTransport, err := nvmeTransportFromContexts(publishContext, req.GetVolumeContext())
|
||||
if err != nil {
|
||||
return nil, status.Error(codes.InvalidArgument, err.Error())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user