Skip to content

Conversation

@ValuedMammal
Copy link
Contributor

@ValuedMammal ValuedMammal commented Oct 29, 2025

Change ConfigBuilder::timeout to accept Option<Duration>. This makes the API more explicit and less error prone, as the caller no longer needs to assume the units of the given duration.

Also updated the code to run clippy check in CI using rust 1.90.0.

BREAKING:

The timeout method on ConfigBuilder is changed to accept a timeout: Option<Duration>. Previously it was Option<u8>.

fix #151
fix #175
Supersedes #179

Copy link
Contributor

@oleonardolima oleonardolima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 0556eb4

- Fixed hidden lifetime in `Batch::iter`
- Use `io::Error::other` in place of `io::Error::new`
when the error kind is `ErrorKind::Other`.
@ValuedMammal ValuedMammal force-pushed the feat/config_builder_timeout_duration branch from 0556eb4 to 5dc4bb6 Compare November 3, 2025 15:14
Copy link
Contributor

@oleonardolima oleonardolima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 5dc4bb6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ci] Update clippy toolchain Timeout should be set with a std::time::Duration

2 participants