mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-23 17:28:23 +00:00
fix: Remove unnecessary StorageHub User provider type (#161)
Co-authored-by: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com>
This commit is contained in:
parent
b5a6406470
commit
01e151c3b1
2 changed files with 0 additions and 12 deletions
|
|
@ -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.",
|
||||
|
|
|
|||
|
|
@ -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>(
|
||||
|
|
|
|||
Loading…
Reference in a new issue