diff options
| author | yourchanges <yourchanges@gmail.com> | 2015-02-03 14:03:17 +0800 |
|---|---|---|
| committer | yourchanges <yourchanges@gmail.com> | 2015-02-03 14:03:17 +0800 |
| commit | 55c40997b1cd9e33eaa841b8abf5e1678773dd1c (patch) | |
| tree | 58bf1d5986948770b14be49333654286a0bf68be /go/operation/lookup.go | |
| parent | 133181bbe4ef1676bb12d13574be4314df1b0ac2 (diff) | |
| parent | b13bcdaedac8af6b433ce39172ffdc33e6ef85f9 (diff) | |
| download | seaweedfs-55c40997b1cd9e33eaa841b8abf5e1678773dd1c.tar.xz seaweedfs-55c40997b1cd9e33eaa841b8abf5e1678773dd1c.zip | |
Merge pull request #5 from chrislusf/master
merge
Diffstat (limited to 'go/operation/lookup.go')
| -rw-r--r-- | go/operation/lookup.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/operation/lookup.go b/go/operation/lookup.go index c05eb1d2b..8156c9779 100644 --- a/go/operation/lookup.go +++ b/go/operation/lookup.go @@ -72,7 +72,7 @@ func LookupFileId(server string, fileId string) (fullUrl string, err error) { if len(lookup.Locations) == 0 { return "", errors.New("File Not Found") } - return "http://" + lookup.Locations[rand.Intn(len(lookup.Locations))].PublicUrl + "/" + fileId, nil + return "http://" + lookup.Locations[rand.Intn(len(lookup.Locations))].Url + "/" + fileId, nil } // LookupVolumeIds find volume locations by cache and actual lookup |
