hydra-send-stats: fix imports

This commit is contained in:
Jörg Thalheim 2021-03-20 06:57:37 +01:00 committed by Graham Christensen
parent 6f662a606a
commit 6bb180a0f2
No known key found for this signature in database
GPG key ID: FE918C3A98C1030F

View file

@ -2,6 +2,7 @@
use strict;
use utf8;
use Hydra::Helper::Nix;
use Net::Statsd;
use File::Slurp;
use JSON;
@ -10,7 +11,7 @@ STDERR->autoflush(1);
binmode STDERR, ":encoding(utf8)";
my $config = getHydraConfig();
my $statsdConfig = Hydra::Helper::Nix::getStatsdConfig($config);
my $statsdConfig = getStatsdConfig($config);
$Net::Statsd::HOST = $statsdConfig->{'host'};
$Net::Statsd::PORT = $statsdConfig->{'port'};