1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-02 16:50:25 +02:00

fix compilation error

This commit is contained in:
Chris Lu 2019-06-28 11:19:08 -07:00
parent 9f3f2f7c79
commit 92c7f7e069

View file

@ -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