Skip to content

Commit

Permalink
Update support/datastore/gcs_datastore.go
Browse files Browse the repository at this point in the history
Co-authored-by: tamirms <tamirms@gmail.com>
  • Loading branch information
urvisavla and tamirms authored May 14, 2024
1 parent eaec804 commit 6c538af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/datastore/gcs_datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (b GCSDataStore) putFile(ctx context.Context, filePath string, in io.Writer
w.SendCRC32C = true
// we must set CRC32C before invoking w.Write() for the first time
w.CRC32C = crc32.Checksum(buf.Bytes(), crc32.MakeTable(crc32.Castagnoli))
if _, err := in.WriteTo(w); err != nil {
if _, err := io.Copy(w, buf); err != nil {
return errors.Wrapf(err, "failed to put file: %s", filePath)
}
return w.Close()
Expand Down

0 comments on commit 6c538af

Please sign in to comment.