Skip to content

Conversation

@Hywan
Copy link
Contributor

@Hywan Hywan commented Nov 7, 2025

This patch removes a double call to PoolBuilder::runtime in Config::create_pool.

Indeed, Config::create_pool calls Config::builder which sets the given runtime to the PoolBuilder by calling PoolBuilder::runtime. Then, once Config::builder has returned, Config::create_pool calls PoolBuilder::runtime again. This second call is useless as runtime is still the same unchanged value. This patch removes this second call.

This patch removes a double call to `PoolBuilder::runtime` in
`Config::create_pool`.

Indeed, `Config::create_pool` calls `Config::builder` which sets the
given `runtime` to the `PoolBuilder` by calling `PoolBuilder::runtime`.
Then, once `Config::builder` has returned, `Config::create_pool` calls
`PoolBuilder::runtime` again. This second call is useless as `runtime`
is still the same unchanged value. This patch removes this second call.
@bikeshedder bikeshedder merged commit 567710e into deadpool-rs:main Nov 14, 2025
14 checks passed
@bikeshedder
Copy link
Collaborator

Thanks a lot!

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.

2 participants