mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 11:59:24 +08:00
fix compilation error
This commit is contained in:
@@ -86,7 +86,7 @@ func (vc *vidMap) GetRandomLocation(vid uint32) (serverUrl string, err error) {
|
||||
|
||||
locations := vc.vid2Locations[vid]
|
||||
if len(locations) == 0 {
|
||||
return "", fmt.Errorf("volume %d not found", id)
|
||||
return "", fmt.Errorf("volume %d not found", vid)
|
||||
}
|
||||
|
||||
return locations[vc.r.Intn(len(locations))].Url, nil
|
||||
|
Reference in New Issue
Block a user