mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 18:40:39 +08:00
c676d8b99a9127b6516ebeb2067a979244d549be
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>
❤️🪵
Radicle Heartwood Protocol & Stack
Languages
Rust
97.8%
Shell
0.5%
CUE
0.4%
Nix
0.3%
Just
0.3%
Other
0.6%