Skip to content

Commit

Permalink
no mu peer & torrent
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jul 1, 2024
1 parent 23dc0e7 commit d48f057
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions torrent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d48f057

Please sign in to comment.