Merge pull request #2901 from xiang90/fix_urlpick

rafthttp: move mu to the top in urlPicker struct
This commit is contained in:
Xiang Li 2015-06-01 23:53:57 -07:00
commit 2b5f417113

View File

@ -22,8 +22,8 @@ import (
)
type urlPicker struct {
mu sync.Mutex // guards urls and picked
urls types.URLs
mu sync.Mutex
picked int
}