mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-23 06:41:34 +00:00
protocols/gossipsub: Fix elided lifetime on gossipsub config builder (#2409)
Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user