Skip to content

Commit

Permalink
refs #32: change read size
Browse files Browse the repository at this point in the history
  • Loading branch information
CityBear3 committed Nov 13, 2023
1 parent d829885 commit e06bcf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/adaptor/repository/minio/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (f FileTransfer) GetFile(ctx context.Context, archiveID primitive.ID, conte

var buf []byte
for {
tmp := make([]byte, 1024)
tmp := make([]byte, 1e6)
_, err := object.Read(tmp)
if err == io.EOF {
break
Expand Down

0 comments on commit e06bcf4

Please sign in to comment.