mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-15 15:50:38 +08:00
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>