Skip to content

Commit

Permalink
Merge branch 'tr/setup' into tr/review
Browse files Browse the repository at this point in the history
  • Loading branch information
tapishr committed Sep 18, 2023
2 parents ab1696f + 393b8e2 commit c9bca44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vibi-dpu/src/pubsub/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ async fn setup_subscription(keypath: &str, topicname: &str) -> Subscription{
..Default::default()
};
let subscription_name = format!("{topicname}-sub");
let subscription = client.subscription(&subscriptionname);
let subscription = client.subscription(&subscription_name);
let subconfig = SubscriptionConfig {
enable_message_ordering: true,
..Default::default()
};
if !subscription.exists(None).await.expect("Unable to get subscription information") {
subscription.create(
topic.fully_qualified_name(), subconfig, None)
Expand Down

0 comments on commit c9bca44

Please sign in to comment.