mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
swarm/network: fix data race on TestService bucket caused by copying struct content without synchronisation
This commit is contained in:
parent
4aeeecfded
commit
1b916f89c1
1 changed files with 1 additions and 2 deletions
|
|
@ -73,8 +73,7 @@ func NewEvent(v interface{}) *Event {
|
|||
switch v := v.(type) {
|
||||
case *Node:
|
||||
event.Type = EventTypeNode
|
||||
node := *v
|
||||
event.Node = &node
|
||||
event.Node = v
|
||||
case *Conn:
|
||||
event.Type = EventTypeConn
|
||||
conn := *v
|
||||
|
|
|
|||
Loading…
Reference in a new issue