Skip to content

Commit

Permalink
fix(cdk): sink generation for conns fails to build (#4005)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoBorai authored May 12, 2024
1 parent 5b0b140 commit 5a1ab22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions connector/cargo_template/Cargo.toml.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ authors = ["{{authors}}"]
edition = "2021"

[dependencies]
fluvio = { git = "https://github.com/infinyon/fluvio", rev = "{{fluvio-cargo-dependency-hash}}" }
fluvio-connector-common = { git = "https://github.com/infinyon/fluvio", rev = "{{fluvio-cargo-dependency-hash}}", features = ["derive"]}
{% if connector-type == "sink" %}futures = { version = "0.3", default-features = false }{% endif %}
serde = { version = "1.0", default-features = false, features = ["derive"]}

fluvio = { git = "https://github.com/infinyon/fluvio", rev = "{{fluvio-cargo-dependency-hash}}" }
fluvio-connector-common = { git = "https://github.com/infinyon/fluvio", rev = "{{fluvio-cargo-dependency-hash}}", features = ["derive"] }
2 changes: 2 additions & 0 deletions connector/cargo_template/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ async fn start(config: CustomConfig, producer: TopicProducer) -> Result<()> {
}

{% elsif connector-type == "sink" %}
use futures::StreamExt;

use fluvio_connector_common::{connector, consumer::ConsumerStream, Result};

#[connector(sink)]
Expand Down

0 comments on commit 5a1ab22

Please sign in to comment.