Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sehz committed Feb 5, 2025
1 parent 3b80454 commit 84a6053
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/partitioning-simple/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ publish = false

[dependencies]
anyhow = { workspace = true }
fluvio = { workspace = true, default-features = false}
fluvio = { workspace = true }
3 changes: 2 additions & 1 deletion examples/partitioning-simple/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ use fluvio::{dataplane::types::PartitionId, Partitioner, PartitionerConfig};
///
/// ```
/// async fn example() {
/// use std::sync::Arc;
/// use fluvio::{Partitioner,PartitionerConfig};
/// use partitioning_simple::AlphabetPartitioning;
///
/// let config = fluvio::TopicProducerConfigBuilder::default()
/// .partitioner(Box::new(AlphabetPartitioning::new()))
/// .partitioner(Arc::new(AlphabetPartitioning::new()))
/// .build()
/// .expect("Failed to create a config");
/// let fluvio_instance = fluvio::Fluvio::connect().await.expect("");
Expand Down

0 comments on commit 84a6053

Please sign in to comment.