Skip to content

Commit 08819b6

Browse files
authored
Merge branch 'master' into dependabot/cargo/secp256k1-0.28.0
2 parents 00a0b1e + 079b14f commit 08819b6

7 files changed

Lines changed: 31 additions & 19 deletions

File tree

Cargo.lock

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cumulus/parachains/runtimes/assets/asset-hub-rococo/src/xcm_config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub type CurrencyTransactor = CurrencyAdapter<
109109
(),
110110
>;
111111

112-
/// `AssetId`/`Balance` converter for `PoolAssets`.
112+
/// `AssetId`/`Balance` converter for `TrustBackedAssets`.
113113
pub type TrustBackedAssetsConvertedConcreteId =
114114
assets_common::TrustBackedAssetsConvertedConcreteId<TrustBackedAssetsPalletLocation, Balance>;
115115

@@ -130,7 +130,7 @@ pub type FungiblesTransactor = FungiblesAdapter<
130130
CheckingAccount,
131131
>;
132132

133-
/// `AssetId/Balance` converter for `TrustBackedAssets`
133+
/// `AssetId`/`Balance` converter for `ForeignAssets`.
134134
pub type ForeignAssetsConvertedConcreteId = assets_common::ForeignAssetsConvertedConcreteId<
135135
(
136136
// Ignore `TrustBackedAssets` explicitly

cumulus/parachains/runtimes/assets/asset-hub-westend/src/xcm_config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub type CurrencyTransactor = CurrencyAdapter<
109109
(),
110110
>;
111111

112-
/// `AssetId/Balance` converter for `TrustBackedAssets`
112+
/// `AssetId`/`Balance` converter for `TrustBackedAssets`.
113113
pub type TrustBackedAssetsConvertedConcreteId =
114114
assets_common::TrustBackedAssetsConvertedConcreteId<TrustBackedAssetsPalletLocation, Balance>;
115115

@@ -130,7 +130,7 @@ pub type FungiblesTransactor = FungiblesAdapter<
130130
CheckingAccount,
131131
>;
132132

133-
/// `AssetId/Balance` converter for `TrustBackedAssets`
133+
/// `AssetId`/`Balance` converter for `ForeignAssets`.
134134
pub type ForeignAssetsConvertedConcreteId = assets_common::ForeignAssetsConvertedConcreteId<
135135
(
136136
// Ignore `TrustBackedAssets` explicitly

substrate/client/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]
1616
array-bytes = "6.1"
1717
chrono = "0.4.27"
1818
clap = { version = "4.4.6", features = ["derive", "string", "wrap_help"] }
19-
fdlimit = "0.2.1"
19+
fdlimit = "0.3.0"
2020
futures = "0.3.21"
2121
itertools = "0.10.3"
2222
libp2p-identity = { version = "0.1.3", features = ["peerid", "ed25519"]}

substrate/client/cli/src/config.rs

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -605,14 +605,25 @@ pub trait CliConfiguration<DCV: DefaultConfigurationValues = ()>: Sized {
605605

606606
logger.init()?;
607607

608-
if let Some(new_limit) = fdlimit::raise_fd_limit() {
609-
if new_limit < RECOMMENDED_OPEN_FILE_DESCRIPTOR_LIMIT {
608+
match fdlimit::raise_fd_limit() {
609+
Ok(fdlimit::Outcome::LimitRaised { to, .. }) =>
610+
if to < RECOMMENDED_OPEN_FILE_DESCRIPTOR_LIMIT {
611+
warn!(
612+
"Low open file descriptor limit configured for the process. \
613+
Current value: {:?}, recommended value: {:?}.",
614+
to, RECOMMENDED_OPEN_FILE_DESCRIPTOR_LIMIT,
615+
);
616+
},
617+
Ok(fdlimit::Outcome::Unsupported) => {
618+
// Unsupported platform (non-Linux)
619+
},
620+
Err(error) => {
610621
warn!(
611-
"Low open file descriptor limit configured for the process. \
612-
Current value: {:?}, recommended value: {:?}.",
613-
new_limit, RECOMMENDED_OPEN_FILE_DESCRIPTOR_LIMIT,
622+
"Failed to configure file descriptor limit for the process: \
623+
{}, recommended value: {:?}.",
624+
error, RECOMMENDED_OPEN_FILE_DESCRIPTOR_LIMIT,
614625
);
615-
}
626+
},
616627
}
617628

618629
Ok(())

substrate/client/service/test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ targets = ["x86_64-unknown-linux-gnu"]
1414
[dependencies]
1515
async-channel = "1.8.0"
1616
array-bytes = "6.1"
17-
fdlimit = "0.2.1"
17+
fdlimit = "0.3.0"
1818
futures = "0.3.21"
1919
log = "0.4.17"
2020
parity-scale-codec = "3.6.1"

substrate/client/service/test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ where
285285
base_port: u16,
286286
) -> TestNet<G, E, F, U> {
287287
sp_tracing::try_init_simple();
288-
fdlimit::raise_fd_limit();
288+
fdlimit::raise_fd_limit().unwrap();
289289
let runtime = Runtime::new().expect("Error creating tokio runtime");
290290
let mut net = TestNet {
291291
runtime,

0 commit comments

Comments
 (0)