diff --git a/lib/govuk_app_config/govuk_statsd.rb b/lib/govuk_app_config/govuk_statsd.rb index 4e43f863..deabe748 100644 --- a/lib/govuk_app_config/govuk_statsd.rb +++ b/lib/govuk_app_config/govuk_statsd.rb @@ -7,7 +7,7 @@ module GovukStatsd :gauge, :set, :batch def self.client - @statsd_client ||= begin + @client ||= begin statsd_client = ::Statsd.new("localhost") statsd_client.namespace = ENV["GOVUK_STATSD_PREFIX"].to_s statsd_client