In drand we have a gossipsub relay to allow users to subscribe to getting random values over pubsub. We want to support pure gossip relays who relay from a relay. For this we need direct peering agreements and want to mitigate the possibility of "missing" randomness messages by ensuring the direct connect ticks period is less than the period between randomness messages.
This PR simply adds a new functional option allowing us to set the direct connect ticks value without modifying the global variable.
In drand we have a gossipsub relay to allow users to subscribe to getting random values over pubsub. We want to support pure gossip relays who relay from a relay. For this we need direct peering agreements and want to mitigate the possibility of "missing" randomness messages by ensuring the direct connect ticks period is less than the period between randomness messages.
This PR simply adds a new functional option allowing us to set the direct connect ticks value without modifying the global variable.