Bump lru from 0.7.8 to 0.8.0 (#6060)

* Bump lru from 0.7.8 to 0.8.0

Bumps [lru](https://github.com/jeromefroe/lru-rs) from 0.7.8 to 0.8.0.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases)
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.7.8...0.8.0)

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

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

* Change `LruCache` paramerter to `NonZeroUsize`

* Change type of `session_cache_lru_size` to `NonZeroUsize`

* Add expects instead of unwrap

Co-authored-by: Bastian Köcher <info@kchr.de>

* Use match to get rid of expects

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Kunert <skunert49@gmail.com>
Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
dependabot[bot]
2022-10-04 11:28:21 +00:00
committed by GitHub
parent 7114a8cfca
commit a64cc4a860
17 changed files with 64 additions and 32 deletions
+9 -9
View File
@@ -6167,7 +6167,7 @@ dependencies = [
"fatality",
"futures",
"futures-timer",
"lru 0.7.8",
"lru 0.8.0",
"parity-scale-codec",
"polkadot-erasure-coding",
"polkadot-node-network-protocol",
@@ -6197,7 +6197,7 @@ dependencies = [
"futures",
"futures-timer",
"log",
"lru 0.7.8",
"lru 0.8.0",
"parity-scale-codec",
"polkadot-erasure-coding",
"polkadot-node-network-protocol",
@@ -6335,7 +6335,7 @@ dependencies = [
"futures",
"futures-timer",
"lazy_static",
"lru 0.7.8",
"lru 0.8.0",
"parity-scale-codec",
"polkadot-erasure-coding",
"polkadot-node-network-protocol",
@@ -6455,7 +6455,7 @@ dependencies = [
"futures-timer",
"kvdb",
"kvdb-memorydb",
"lru 0.7.8",
"lru 0.8.0",
"merlin",
"parity-scale-codec",
"parking_lot 0.12.1",
@@ -6624,7 +6624,7 @@ dependencies = [
"futures-timer",
"kvdb",
"kvdb-memorydb",
"lru 0.7.8",
"lru 0.8.0",
"parity-scale-codec",
"polkadot-node-primitives",
"polkadot-node-subsystem",
@@ -6911,7 +6911,7 @@ dependencies = [
"kvdb-shared-tests",
"lazy_static",
"log",
"lru 0.7.8",
"lru 0.8.0",
"parity-db",
"parity-scale-codec",
"parity-util-mem",
@@ -6945,7 +6945,7 @@ dependencies = [
"femme",
"futures",
"futures-timer",
"lru 0.7.8",
"lru 0.8.0",
"orchestra",
"parity-util-mem",
"parking_lot 0.12.1",
@@ -7302,7 +7302,7 @@ dependencies = [
"kvdb",
"kvdb-rocksdb",
"log",
"lru 0.7.8",
"lru 0.8.0",
"pallet-babe",
"pallet-im-online",
"pallet-staking",
@@ -11921,7 +11921,7 @@ version = "1.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675"
dependencies = [
"cfg-if 1.0.0",
"cfg-if 0.1.10",
"digest 0.10.3",
"rand 0.8.5",
"static_assertions",