v0.2.7-pre.003

This commit is contained in:
2026-08-22 17:56:17 +02:00
parent d5df0fe9af
commit b0461f15ec

View File

@@ -79,10 +79,7 @@ impl ResolvedTransportConfig {
#[must_use]
pub fn into_transport_settings(
self,
) -> (
ksp_onchain_transport_lib::HttpTransportSettings,
std::option::Option<ksp_onchain_transport_lib::WsTransportSettings>,
) {
) -> (ksp_onchain_transport_lib::HttpTransportSettings, std::option::Option<ksp_onchain_transport_lib::WsTransportSettings>) {
return (self.settings, self.ws_settings);
}
}
@@ -351,7 +348,11 @@ fn map_optional_ws_settings(
};
let settings = ksp_onchain_transport_lib::WsTransportSettings::new(endpoints);
if let std::result::Result::Err(error) = settings.validate() {
return std::result::Result::Err(transport_contract_error(profile, "effective WebSocket Transport settings fail the Transport runtime contract", &error));
return std::result::Result::Err(transport_contract_error(
profile,
"effective WebSocket Transport settings fail the Transport runtime contract",
&error,
));
}
std::result::Result::Ok(std::option::Option::Some(settings))
},