mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Rename displayCountryStats to formatAndClearCountryStats.
The old name did not make it clear that the function has the side effect of clearing the map.
This commit is contained in:
parent
75daf2210f
commit
ed3bd99df6
2 changed files with 11 additions and 11 deletions
|
@ -1047,7 +1047,7 @@ snowflake-ips-nat-unknown 0
|
|||
ptr := val.(*uint64)
|
||||
atomic.AddUint64(ptr, count)
|
||||
}
|
||||
So(displayCountryStats(stats, false), ShouldEqual, "CN=250,FR=200,RU=150,TZ=100,IT=50,BE=1,CA=1,PH=1")
|
||||
So(formatAndClearCountryStats(stats, false), ShouldEqual, "CN=250,FR=200,RU=150,TZ=100,IT=50,BE=1,CA=1,PH=1")
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue