Skip to content

Commit adb3c66

Browse files
committed
add a comment to prevent copy into memory
1 parent dd76177 commit adb3c66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

storage/artifactory.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ func (s *Artifactory) Open(ctx context.Context, fp string) (fs.File, error) {
299299
}
300300
}
301301

302+
// TODO: Do no copy the bytes into memory, stream them rather than
303+
// storing the entire file into memory.
302304
f := mem.NewFileHandle(mem.CreateFile(fp))
303305
_, err = io.Copy(f, resp)
304306
if err != nil {

0 commit comments

Comments
 (0)