Skip to content

Commit

Permalink
Fix const validity
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianBland committed May 31, 2024
1 parent ff53ce3 commit eb76e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/net/discv5/src/network_stack_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl NetworkStackId {
pub const OPSTACK: &'static [u8] = b"opstack";

/// Returns the [`NetworkStackId`] that matches the given [`ChainSpec`].
pub const fn id(chain: &ChainSpec) -> Option<&'static [u8]> {
pub fn id(chain: &ChainSpec) -> Option<&'static [u8]> {
if chain.is_optimism() {
return Some(Self::OPEL)
} else if chain.is_eth() {
Expand Down

0 comments on commit eb76e88

Please sign in to comment.