style(peer): format security hardening
Record the deterministic nightly rustfmt output for the newly added event-channel and retry code after the repository-wide formatter gate was repaired. Test Plan: - just fmt - just clippy - git diff --check
This commit is contained in:
1 parent
f6af9b9420
commit
49f8eef7b5
10 files changed
+24
-61
No files matched your search
@@ -3,6 +3,7 @@
|
||||
use std::{sync::Arc, time::Duration};
|
||||
|
||||
use futures::{StreamExt as _, stream};
|
||||
|
||||
use crate::{
|
||||
PeerEventSender,
|
||||
config::{PEER_PING_IDLE_SECS, PEER_PING_INTERVAL_SECS, peer_stale_timeout},
|
||||
|
||||
@@ -55,10 +55,7 @@ pub(crate) struct RemoteStateCtx {
|
||||
|
||||
impl RemoteStateCtx {
|
||||
#[must_use]
|
||||
pub(crate) fn from_network(
|
||||
ctx: &NetworkServiceCtx,
|
||||
tx_notify_ui: &PeerEventSender,
|
||||
) -> Self {
|
||||
pub(crate) fn from_network(ctx: &NetworkServiceCtx, tx_notify_ui: &PeerEventSender) -> Self {
|
||||
Self {
|
||||
local_peer_id: ctx.peer_id,
|
||||
peer_game_db: ctx.peer_game_db.clone(),
|
||||
@@ -371,10 +368,7 @@ fn enqueue_final_views(
|
||||
/// Clears every remote projection after one network generation has fully
|
||||
/// drained, then queues the authoritative replacement views while the
|
||||
/// database-to-Call-to-Play lock order is still held.
|
||||
pub(crate) async fn clear_remote_state_and_publish(
|
||||
ctx: &Ctx,
|
||||
tx_notify_ui: &PeerEventSender,
|
||||
) {
|
||||
pub(crate) async fn clear_remote_state_and_publish(ctx: &Ctx, tx_notify_ui: &PeerEventSender) {
|
||||
let mut db = ctx.peer_game_db.write().await;
|
||||
let mut call_to_play = ctx.call_to_play.write().await;
|
||||
let retired = db.clear_remote_peers();
|
||||
|
||||
Reference in new issue
Block a user