Skip to content

Commit

Permalink
Bridge: bump rust sdk (path dep)
Browse files Browse the repository at this point in the history
This gives access to the needed beta `events_subscription` API, pending
a libs release.
  • Loading branch information
svix-onelson committed Jul 10, 2024
1 parent c3654d1 commit 6f4f67c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions bridge/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bridge/svix-bridge-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ async-trait = "0.1"
tokio.workspace = true
serde.workspace = true
serde_json.workspace = true
svix = { version = "1.24.0", features = ["svix_beta"] }
svix = { path = "../../rust", features = ["svix_beta"] }
5 changes: 3 additions & 2 deletions bridge/svix-bridge/src/webhook_receiver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use axum::{
};
use svix_bridge_types::{
async_trait,
svix::api::{Svix, V1MessageStreamParams},
svix::api::{Svix, V1MessageEventsSubscriptionParams},
ForwardRequest, PollerInput, ReceiverOutput, TransformationConfig, TransformerInput,
TransformerInputFormat, TransformerJob, TransformerOutput, TransformerTx,
};
Expand Down Expand Up @@ -274,9 +274,10 @@ async fn run_inner(poller: &SvixEventsPoller) -> ! {
match poller
.svix_client
.message()
.events(V1MessageStreamParams {
.events_subscription(V1MessageEventsSubscriptionParams {
// FIXME: expose more params as poller input cfg
app_id: app_id.clone(),
subscription_id: subscription_id.clone(),
limit: None,
iterator: iterator.clone(),
event_types: None,
Expand Down

0 comments on commit 6f4f67c

Please sign in to comment.