We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db5ab8d commit 95e5f2eCopy full SHA for 95e5f2e
async-nats/tests/jetstream_tests.rs
@@ -2586,6 +2586,7 @@ mod jetstream {
2586
.await
2587
.unwrap();
2588
2589
+ // Pull Consumer
2590
{
2591
let consumer = stream
2592
.create_consumer(consumer::pull::Config {
@@ -2602,10 +2603,12 @@ mod jetstream {
2602
2603
assert_eq!(100, consumer.cached_info().config.sample_frequency);
2604
}
2605
2606
+ // Push Consumer
2607
2608
- .create_consumer(consumer::pull::Config {
2609
+ .create_consumer(consumer::push::Config {
2610
name: Some("SampledPushConsumer".into()),
2611
+ deliver_subject: "DeliverSubject".into(),
2612
description: Some(
2613
"See below to check that Ack Sampling has been set to 100%!".to_string(),
2614
),
0 commit comments