[tor-commits] [metrics-lib/release] Replace lambda with method reference.