Skip to content

Commit fbeda94

Browse files
authored
Fix transport compression feature & add CI tests (#3067)
1 parent 276901f commit fbeda94

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
- no cache
2727
- no gateway
2828
- unstable Discord API features
29+
- zlib compression
30+
- zstd compression
31+
- zlib and zstd compression
2932

3033
include:
3134
- name: beta
@@ -51,6 +54,12 @@ jobs:
5154
- name: unstable Discord API (no default features)
5255
features: unstable
5356
dont-test: true
57+
- name: zlib compression
58+
features: default transport_compression_zlib
59+
- name: zstd compression
60+
features: default transport_compression_zstd
61+
- name: zlib and zstd compression
62+
features: default transport_compression_zlib transport_compression_zstd
5463

5564
steps:
5665
- name: Checkout sources

src/gateway/sharding/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ use std::fmt;
4444
use std::sync::Arc;
4545
use std::time::{Duration as StdDuration, Instant};
4646

47-
#[cfg(feature = "transport_compression_zlib")]
47+
#[cfg(any(feature = "transport_compression_zlib", feature = "transport_compression_zstd"))]
4848
use aformat::aformat_into;
4949
use aformat::{aformat, ArrayString, CapStr};
5050
use serde::Deserialize;

0 commit comments

Comments
 (0)