Skip to content

Commit

Permalink
Fix build if default features are disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <[email protected]>
  • Loading branch information
Jarema committed Apr 9, 2024
1 parent 3d70525 commit 9a81257
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions async-nats/src/jetstream/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ use super::errors::ErrorCode;
use super::is_valid_name;
use super::kv::{Store, MAX_HISTORY};
use super::object_store::{is_valid_bucket_name, ObjectStore};
#[cfg(feature = "server_2_10")]
use super::stream::Compression;
use super::stream::{
self, Compression, Config, ConsumerError, ConsumerErrorKind, DeleteStatus, DiscardPolicy,
External, Info, Stream,
self, Config, ConsumerError, ConsumerErrorKind, DeleteStatus, DiscardPolicy, External, Info,
Stream,
};

/// A context which can perform jetstream scoped requests.
Expand Down Expand Up @@ -1045,6 +1047,7 @@ impl Context {
discard: DiscardPolicy::New,
allow_rollup: true,
allow_direct: true,
#[cfg(feature = "server_2_10")]
compression: if config.compression {
Some(Compression::S2)
} else {
Expand Down

0 comments on commit 9a81257

Please sign in to comment.