v0.2.11-pre.003-fix.001
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-offchain-transport-lib/src/http_settings.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
//! Crate-wide bounded HTTP runtime settings shared by off-chain capability families.
|
||||
|
||||
@@ -18,7 +18,7 @@ pub(crate) struct HttpClientSettings {
|
||||
request_timeout: std::time::Duration,
|
||||
}
|
||||
|
||||
impl HttpClientSettings {
|
||||
impl crate::HttpClientSettings {
|
||||
/// Creates one validated HTTP settings value.
|
||||
pub(crate) fn new(
|
||||
connect_timeout: std::time::Duration,
|
||||
@@ -59,7 +59,7 @@ impl HttpClientSettings {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::default::Default for HttpClientSettings {
|
||||
impl std::default::Default for crate::HttpClientSettings {
|
||||
fn default() -> Self {
|
||||
return Self {
|
||||
connect_timeout: DEFAULT_CONNECT_TIMEOUT,
|
||||
@@ -69,7 +69,7 @@ impl std::default::Default for HttpClientSettings {
|
||||
}
|
||||
}
|
||||
|
||||
fn invalid_http_settings(message: &str, field: &'static str) -> ksp_core_lib::Result<HttpClientSettings> {
|
||||
fn invalid_http_settings(message: &str, field: &'static str) -> ksp_core_lib::Result<crate::HttpClientSettings> {
|
||||
ksp_logging_lib::warn!(target: crate::TRACING_TARGET, field = field, "rejected invalid off-chain HTTP client settings");
|
||||
return std::result::Result::Err(ksp_core_lib::Error::new(crate::ERROR_CODE_HTTP_SETTINGS_INVALID, message).with_context("field", field));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user