[tor-commits] [metrics-lib/release] Replace while with for loops.