fix(backend/storage): fixed bug with large session files
This commit is contained in:
parent
24fdb5e18c
commit
d871558390
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ func (s *Storage) UploadKey(key string, retryCount int) {
|
|||
log.Printf("File read error: %f", err)
|
||||
return
|
||||
}
|
||||
startReader := bytes.NewBuffer(startBytes)
|
||||
startReader := bytes.NewBuffer(startBytes[:nRead])
|
||||
if err := s.s3.Upload(s.gzipFile(startReader), key, "application/octet-stream", true); err != nil {
|
||||
log.Fatalf("Storage: start upload failed. %v\n", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue