mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Rename metrics update functions
This changes the metrics update functions to UpdateProxyStats and UpdateClientStats, which is more accurate and clear than the previous CountryStats and RendezvousStats names.
This commit is contained in:
parent
78cf8e68b2
commit
1d73e14f34
3 changed files with 7 additions and 7 deletions
|
@ -651,7 +651,7 @@ func TestInvalidGeoipFile(t *testing.T) {
|
|||
if err := ctx.metrics.LoadGeoipDatabases("invalid_filename", "invalid_filename6"); err != nil {
|
||||
log.Printf("loading geo ip databases returned error: %v", err)
|
||||
}
|
||||
ctx.metrics.UpdateCountryStats("127.0.0.1", "", NATUnrestricted)
|
||||
ctx.metrics.UpdateProxyStats("127.0.0.1", "", NATUnrestricted)
|
||||
So(ctx.metrics.geoipdb, ShouldBeNil)
|
||||
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue