close open files

This commit is contained in:
Michael Yang
2023-08-14 16:08:02 -07:00
parent 2ab20095b3
commit e26085b921
3 changed files with 3 additions and 0 deletions

View File

@@ -1117,6 +1117,7 @@ func uploadBlobChunked(ctx context.Context, mp ModelPath, url string, layer *Lay
if err != nil {
return err
}
defer f.Close()
totalUploaded := 0