add back AdjustedUrl() related code

This commit is contained in:
Chris Lu committed 2021-01-28 14:36:29 -08:00
1 parent 9292796ec2
commit 990fa69bfe
10 files changed
+31 -2

No files matched your search

+4
View File
@@ -124,6 +124,10 @@ func (fs *FilerSource) WithFilerClient(fn func(filer_pb.SeaweedFilerClient) erro
}
func (fs *FilerSource) AdjustedUrl(location *filer_pb.Location) string {
return location.Url
}
func volumeId(fileId string) string {
lastCommaIndex := strings.LastIndex(fileId, ",")
if lastCommaIndex > 0 {