Skip to content

Commit 803bcd7

Browse files
committed
use defaultcompression instead of 0
1 parent 009bec7 commit 803bcd7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aws/logs_monitoring_go/internal/forwarding/forwarding.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (f Forwarder) Send(ctx context.Context, payload []byte) error {
105105
if f.storage != "" {
106106
req.Header.Set("DD-STORAGE-TAG", f.storage)
107107
}
108-
if f.cfg.CompressionLevel != 0 {
108+
if f.cfg.CompressionLevel != gzip.NoCompression {
109109
compressed, err := f.compress(payload)
110110
if err != nil {
111111
return fmt.Errorf("compress: %w", err)

0 commit comments

Comments
 (0)