mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix naming typo (#3465)
Co-authored-by: root <root@HQ-10MSTD3EY.roblox.local>
This commit is contained in:
parent
5702727db5
commit
b6f99c4d83
|
@ -10,14 +10,14 @@ import (
|
||||||
func (vs *VolumeServer) ReadAllNeedles(req *volume_server_pb.ReadAllNeedlesRequest, stream volume_server_pb.VolumeServer_ReadAllNeedlesServer) (err error) {
|
func (vs *VolumeServer) ReadAllNeedles(req *volume_server_pb.ReadAllNeedlesRequest, stream volume_server_pb.VolumeServer_ReadAllNeedlesServer) (err error) {
|
||||||
|
|
||||||
for _, vid := range req.VolumeIds {
|
for _, vid := range req.VolumeIds {
|
||||||
if err := vs.streaReadOneVolume(needle.VolumeId(vid), stream, err); err != nil {
|
if err := vs.streamReadOneVolume(needle.VolumeId(vid), stream, err); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (vs *VolumeServer) streaReadOneVolume(vid needle.VolumeId, stream volume_server_pb.VolumeServer_ReadAllNeedlesServer, err error) error {
|
func (vs *VolumeServer) streamReadOneVolume(vid needle.VolumeId, stream volume_server_pb.VolumeServer_ReadAllNeedlesServer, err error) error {
|
||||||
v := vs.store.GetVolume(vid)
|
v := vs.store.GetVolume(vid)
|
||||||
if v == nil {
|
if v == nil {
|
||||||
return fmt.Errorf("not found volume id %d", vid)
|
return fmt.Errorf("not found volume id %d", vid)
|
||||||
|
|
Loading…
Reference in a new issue