protocols/gossipsub: Fix elided lifetime on gossipsub config builder (#2409)

Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
Ibiyemi Abiodun
2021-12-30 14:23:41 -05:00
committed by GitHub
parent b4468d7500
commit 3749dd56f1
2 changed files with 4 additions and 1 deletions

View File

@ -750,7 +750,7 @@ impl GossipsubConfigBuilder {
}
/// Constructs a [`GossipsubConfig`] from the given configuration and validates the settings.
pub fn build(&self) -> Result<GossipsubConfig, &str> {
pub fn build(&self) -> Result<GossipsubConfig, &'static str> {
// check all constraints on config
if self.config.max_transmit_size < 100 {