fix: NodeGetVolumeStats crash

fix
This commit is contained in:
andyzhangx 2023-12-27 13:52:58 +00:00
parent aacf1ee7dd
commit a64df6f293

View File

@ -277,7 +277,7 @@ func (ns *NodeServer) NodeGetVolumeStats(_ context.Context, req *csi.NodeGetVolu
} }
// cache the volume stats per volume // cache the volume stats per volume
ns.Driver.volStatsCache.Set(req.VolumeId, &resp) ns.Driver.volStatsCache.Set(req.VolumeId, resp)
return &resp, err return &resp, err
} }