Browse Source

fix compilation error

pull/997/head
Chris Lu 6 years ago
parent
commit
92c7f7e069
  1. 2
      weed/wdclient/vid_map.go

2
weed/wdclient/vid_map.go

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

Loading…
Cancel
Save