fix: Remove unnecessary StorageHub User provider type (#161)

Co-authored-by: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com>
This commit is contained in:
Steve Degosserie 2025-09-12 13:08:32 +02:00 committed by GitHub
parent b5a6406470
commit 01e151c3b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 12 deletions

View file

@ -88,8 +88,6 @@ pub enum ProviderType {
Msp,
/// Backup Storage Provider
Bsp,
/// User role
User,
}
impl<'de> serde::Deserialize<'de> for ProviderType {
@ -99,7 +97,6 @@ impl<'de> serde::Deserialize<'de> for ProviderType {
let provider_type = match s.as_str() {
"bsp" => ProviderType::Bsp,
"msp" => ProviderType::Msp,
"user" => ProviderType::User,
_ => {
return Err(serde::de::Error::custom(
"Cannot parse `provider_type`. Invalid value.",

View file

@ -854,15 +854,6 @@ where
)
.await;
}
(&ProviderType::User, _) => {
return new_full_impl::<UserRole, NoStorageLayer, Runtime, RuntimeApi, N>(
config,
eth_config,
Some(provider_options),
indexer_options,
)
.await;
}
};
} else {
return new_full_impl::<UserRole, NoStorageLayer, Runtime, RuntimeApi, N>(