Allow setting a test peer's local time to avoid slight race conditions in tests. The race condition's happen because peers created within a test may unexpectedly have slightly different local times. To support this, a struct is used as argument to peer::config(..). The linter 'cargo clippy' will complain if instead of using a struct, the local time is passed as an additional parameter in config()'s function call. Signed-off-by: Slack Coder <slackcoder@server.ky> |
||
|---|---|---|
| .. | ||
| arbitrary.rs | ||
| gossip.rs | ||
| handle.rs | ||
| logger.rs | ||
| peer.rs | ||
| simulator.rs | ||