From 92c7f7e069ae3f60a54ee9e359a77902a2e05010 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 28 Jun 2019 11:19:08 -0700 Subject: [PATCH] fix compilation error --- weed/wdclient/vid_map.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/wdclient/vid_map.go b/weed/wdclient/vid_map.go index 4c43a225a..06308944d 100644 --- a/weed/wdclient/vid_map.go +++ b/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