Skip to content

Commit

Permalink
Fix transport compression feature & add CI tests (#3067)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgardt authored Nov 26, 2024
1 parent 276901f commit fbeda94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- no cache
- no gateway
- unstable Discord API features
- zlib compression
- zstd compression
- zlib and zstd compression

include:
- name: beta
Expand All @@ -51,6 +54,12 @@ jobs:
- name: unstable Discord API (no default features)
features: unstable
dont-test: true
- name: zlib compression
features: default transport_compression_zlib
- name: zstd compression
features: default transport_compression_zstd
- name: zlib and zstd compression
features: default transport_compression_zlib transport_compression_zstd

steps:
- name: Checkout sources
Expand Down
2 changes: 1 addition & 1 deletion src/gateway/sharding/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ use std::fmt;
use std::sync::Arc;
use std::time::{Duration as StdDuration, Instant};

#[cfg(feature = "transport_compression_zlib")]
#[cfg(any(feature = "transport_compression_zlib", feature = "transport_compression_zstd"))]
use aformat::aformat_into;
use aformat::{aformat, ArrayString, CapStr};
use serde::Deserialize;
Expand Down

0 comments on commit fbeda94

Please sign in to comment.