Skip to content

Commit

Permalink
Fix default parse
Browse files Browse the repository at this point in the history
  • Loading branch information
samdealy committed Jan 12, 2023
1 parent a818bb3 commit a49da9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fog/view/server/src/sharding_strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ impl FromStr for EpochShardingStrategy {
type Err = String;

fn from_str(s: &str) -> Result<Self, Self::Err> {
if s.eq("default") {
Ok(EpochShardingStrategy::default())
}
if let Ok(block_range) = BlockRange::from_str(s) {
return Ok(Self::new(block_range));
}
Expand Down

0 comments on commit a49da9b

Please sign in to comment.