since lookaside is essentialy a CAS, disable namespacing

This commit is contained in:
Mustafa Gezen 2021-01-01 17:48:52 +01:00
parent db7390bc51
commit 1ce1a19a4f
1 changed files with 1 additions and 3 deletions

View File

@ -45,8 +45,6 @@ func runFetch(_ *cobra.Command, _ []string) {
log.Fatal(err)
}
name := strings.Split(metadataPath, ".")[1]
metadataFile, err := os.Open(metadataPath)
if err != nil {
log.Fatalf("could not open metadata file: %v", err)
@ -72,7 +70,7 @@ func runFetch(_ *cobra.Command, _ []string) {
hash := lineInfo[0]
path := lineInfo[1]
url := fmt.Sprintf("%s/%s/%s", cdnUrl, name, hash)
url := fmt.Sprintf("%s/%s", cdnUrl, hash)
log.Printf("downloading %s", url)
req, err := http.NewRequest("GET", url, nil)