Bump deadpool from 0.7.0 to 0.9.1 (#371)

* Bump deadpool from 0.7.0 to 0.9.1

Bumps [deadpool](https://github.com/bikeshedder/deadpool) from 0.7.0 to 0.9.1.
- [Release notes](https://github.com/bikeshedder/deadpool/releases)
- [Changelog](https://github.com/bikeshedder/deadpool/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bikeshedder/deadpool/compare/deadpool-v0.7.0...deadpool-v0.9.1)

---
updated-dependencies:
- dependency-name: deadpool
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Attempt fix for deadpool v0.8.0+ (#372)

Signed-off-by: MichaIng <micha@dietpi.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: MichaIng <micha@dietpi.com>
This commit is contained in:
dependabot[bot] 2021-10-28 02:05:58 +02:00 committed by GitHub
parent 47426c6971
commit d3a72d3816
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 4 deletions

22
Cargo.lock generated
View file

@ -727,6 +727,24 @@ dependencies = [
"tokio",
]
[[package]]
name = "deadpool"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "51dc1e92ba8164da131a4753a26cb1e7ebcfe617e56bb3c2b6136049c8ee5730"
dependencies = [
"async-trait",
"deadpool-runtime",
"num_cpus",
"tokio",
]
[[package]]
name = "deadpool-runtime"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eaa37046cc0f6c3cc6090fbdbf73ef0b8ef4cfcc37f6befc0020f63e8cf121e1"
[[package]]
name = "diff"
version = "0.1.12"
@ -1601,7 +1619,7 @@ version = "0.8.0"
dependencies = [
"cached",
"check-if-email-exists",
"deadpool",
"deadpool 0.9.1",
"doc-comment",
"fast_chemail",
"glob",
@ -3518,7 +3536,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33807c11bd2c5a3896c36042ef2ca9663795bb7e4af2fe87474a159ea72c2159"
dependencies = [
"async-trait",
"deadpool",
"deadpool 0.7.0",
"futures",
"futures-timer",
"http-types",

View file

@ -18,7 +18,7 @@ version = "0.8.0"
[dependencies]
check-if-email-exists = "0.8.25"
deadpool = "0.7.0"
deadpool = "0.9.1"
fast_chemail = "0.9.6"
glob = "0.3.0"
html5ever = "0.25.1"

View file

@ -34,7 +34,7 @@ impl ClientPool {
/// asynchronously to a client from the pool
pub async fn listen(&mut self) {
while let Some(req) = self.rx.recv().await {
let client = self.pool.get().await;
let client = self.pool.get().await.unwrap();
let tx = self.tx.clone();
tokio::spawn(async move {
// Client::check() may fail only because Request::try_from() may fail