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

@ValuedMammal ValuedMammal merged commit 5d7be37 into bitcoindevkit:master Nov 11, 2025
4 checks passed
@ValuedMammal ValuedMammal mentioned this pull request Nov 11, 2025
@ValuedMammal ValuedMammal deleted the feat/config_builder_timeout_duration branch November 13, 2025 15:03
radiant-smith-lk20 added a commit to radiant-smith-lk20/rust-electrum-client that referenced this pull request Dec 15, 2025
…ilder::timeout` to accept `Option<Duration>`

5dc4bb6360f1ff3f4b848a9b755c0c30a2e7e01b ci: bump clippy to 1.90.0 (valued mammal)
e31cf4773bf7e3f269ebff49726f8979592a1f15 feat!: Change ConfigBuilder::timeout to accept Option<Duration> (valued mammal)

Pull request description:

  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

ACKs for top commit:
  oleonardolima:
    ACK 5dc4bb6360f1ff3f4b848a9b755c0c30a2e7e01b

Tree-SHA512: cd6ca6fdd91dcf6f193327ca40f6d37ea8b1b548102f080d0b72a0df509f6455aa50ee43148e4746ca6b295a30a78cb7d786fb0e90c050448e96e122a5b8c92d
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