Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: expose types needed to construct connector config #4011

Merged
merged 3 commits into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions crates/fluvio-connector-package/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ use serde::ser::{SerializeMap, SerializeSeq};
use tracing::debug;
use anyhow::Result;
use serde::{Deserialize, Serialize, Deserializer, Serializer};
use bytesize::ByteSize;
pub use bytesize::ByteSize;

use fluvio_controlplane_metadata::topic::config::TopicConfig;
use fluvio_smartengine::transformation::TransformationStep;
use fluvio_compression::Compression;
use fluvio_types::PartitionId;
pub use fluvio_controlplane_metadata::topic::config as topic_config;
pub use fluvio_smartengine::transformation::TransformationStep;
pub use fluvio_compression::Compression;
pub use fluvio_types::PartitionId;

use crate::metadata::Direction;

Expand Down Expand Up @@ -265,7 +265,7 @@ impl MetaConfig<'_> {
}
}

pub fn topic_config(&self) -> Option<&TopicConfig> {
pub fn topic_config(&self) -> Option<&topic_config::TopicConfig> {
match self {
MetaConfig::V0_1_0(_) => None,
MetaConfig::V0_2_0(inner) => Some(&inner.topic),
Expand Down Expand Up @@ -738,7 +738,7 @@ mod tests {
meta: MetaConfigV2 {
name: "my-test-mqtt".to_string(),
type_: "mqtt".to_string(),
topic: TopicConfig {
topic: topic_config::TopicConfig {
version: "0.1.0".to_string(),
meta: MetaConfig {
name: "test-topic".to_string(),
Expand Down
Loading