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:
David Fifield 2025-08-15 18:06:58 +00:00
parent 75daf2210f
commit ed3bd99df6
2 changed files with 11 additions and 11 deletions

View file

@ -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")
})
})
}