forked from mirror/go-ethereum
p2p, p2p/enode: fix data races (#23434)
In p2p/dial.go, conn.flags was accessed without using sync/atomic. This race is fixed by removing the access. In p2p/enode/iter_test.go, a similar race is resolved by writing the field atomically. Co-authored-by: Felix Lange <fjl@twurst.com>revert-23426-revert-23120-drop-eth-65
parent
79bb9300c1
commit
8dbf261fd9
Loading…
Reference in new issue