mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
rafthttp: move mu to the top in urlPicker struct
mutex protects all the fields.
This commit is contained in:
parent
8825af47a0
commit
b660ee408f
@ -22,8 +22,8 @@ import (
|
||||
)
|
||||
|
||||
type urlPicker struct {
|
||||
mu sync.Mutex // guards urls and picked
|
||||
urls types.URLs
|
||||
mu sync.Mutex
|
||||
picked int
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user