validation: consumers are not durable
This commit is contained in:
parent
7f1054d509
commit
64d6fe6059
@ -33,7 +33,6 @@ impl Publisher{
|
||||
Ok(Self{
|
||||
messages:nats.get_stream("submissions_publish_new").await.map_err(NatsStartupError::GetStream)?
|
||||
.create_consumer_strict(async_nats::jetstream::consumer::pull::Config{
|
||||
durable_name:Some("pull".to_owned()),
|
||||
..Default::default()
|
||||
}).await.map_err(NatsStartupError::ConsumerCreateStrict)?
|
||||
.messages().await.map_err(NatsStartupError::Stream)?,
|
||||
|
@ -37,7 +37,6 @@ impl Publisher{
|
||||
Ok(Self{
|
||||
messages:nats.get_stream("submissions_publish_new").await.map_err(NatsStartupError::GetStream)?
|
||||
.create_consumer_strict(async_nats::jetstream::consumer::pull::Config{
|
||||
durable_name:Some("pull".to_owned()),
|
||||
..Default::default()
|
||||
}).await.map_err(NatsStartupError::ConsumerCreateStrict)?
|
||||
.messages().await.map_err(NatsStartupError::Stream)?,
|
||||
|
@ -51,7 +51,6 @@ impl Validator{
|
||||
Ok(Self{
|
||||
messages:nats.get_stream("submissions_validate").await.map_err(NatsStartupError::GetStream)?
|
||||
.create_consumer_strict(async_nats::jetstream::consumer::pull::Config{
|
||||
durable_name:Some("pull".to_owned()),
|
||||
..Default::default()
|
||||
}).await.map_err(NatsStartupError::ConsumerCreateStrict)?
|
||||
.messages().await.map_err(NatsStartupError::Stream)?,
|
||||
|
Loading…
Reference in New Issue
Block a user