From d48f0578ace500795af6383d3121893179d8742f Mon Sep 17 00:00:00 2001 From: Mark Holt Date: Mon, 1 Jul 2024 11:52:22 +0100 Subject: [PATCH] no mu peer & torrent --- peer.go | 2 +- torrent.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/peer.go b/peer.go index 57f86c3e99..4dec6334d8 100644 --- a/peer.go +++ b/peer.go @@ -28,7 +28,7 @@ type ( Peer struct { // First to ensure 64-bit alignment for atomics. See #262. _stats ConnStats - mu mu //sync.RWMutex + mu sync.RWMutex t *Torrent diff --git a/torrent.go b/torrent.go index 04a5938185..1c95e35b70 100644 --- a/torrent.go +++ b/torrent.go @@ -206,8 +206,8 @@ type Torrent struct { // Name used if the info name isn't available. Should be cleared when the // Info does become available. - mu mu //sync.RWMutex - imu mu //sync.RWMutex + mu sync.RWMutex + imu sync.RWMutex displayName string // The bencoded bytes of the info dict. This is actively manipulated if