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

[Merged by Bors] - feat: re-export 'retry' in common connector crate #2922

Closed
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions crates/fluvio-connector-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub type Result<T> = std::result::Result<T, Error>;
pub mod future {
pub use fluvio_future::task::run_block_on;
pub use fluvio_future::subscriber::init_logger;
pub use fluvio_future::retry;
}

pub mod tracing {
Expand Down
2 changes: 1 addition & 1 deletion crates/fluvio-connector-derive/src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ pub(crate) fn generate_connector_config(item: &ConnectorConfigStruct) -> TokenSt
#config_struct

impl #ident {
fn __config_name() -> &'static str {
pub fn __config_name() -> &'static str {
#config_name
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/fluvio/src/producer/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ impl Iterator for RetryPolicyIter {
}

impl RetryPolicy {
pub(crate) fn iter(&self) -> impl Iterator<Item = Duration> + Debug + Send {
pub fn iter(&self) -> impl Iterator<Item = Duration> + Debug + Send {
match self.strategy {
RetryStrategy::FixedDelay => {
RetryPolicyIter::FixedDelay(FixedDelay::new(self.initial_delay))
Expand Down