• Brad Fitzpatrick's avatar
    expvar: sort maps, fix race · cfb9cf0f
    Brad Fitzpatrick authored
    It's pretty distracting to use expvar with the output of both
    the top-level map and map values jumping around randomly.
    
    Also fixes a potential race where multiple clients trying to
    increment a map int or float key at the same time could lose
    updates.
    
    R=golang-codereviews, couchmoney
    CC=golang-codereviews
    https://golang.org/cl/54320043
    cfb9cf0f
expvar.go 6.36 KB