Skip to content

Commit

Permalink
fix: rename LocalServiceDiscoveryIPv4 to LocalServiceDiscoveryIPv4Var…
Browse files Browse the repository at this point in the history
…iable
  • Loading branch information
romanov.ah committed Aug 22, 2024
1 parent 045c962 commit e10e926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Vostok.Commons.Environment/EnvironmentInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal static class EnvironmentInfo
{
public const string LocalHostnameVariable = "VOSTOK_LOCAL_HOSTNAME";
public const string LocalFQDNVariable = "VOSTOK_LOCAL_FQDN";
public const string LocalServiceDiscoveryIPv4 = "VOSTOK_LOCAL_SERVICE_DISCOVERY_IPV4";
public const string LocalServiceDiscoveryIPv4Variable = "VOSTOK_LOCAL_SERVICE_DISCOVERY_IPV4";

private static Lazy<string> application = new Lazy<string>(ObtainApplicationName);
private static Lazy<string> host = new Lazy<string>(ObtainHostname);
Expand Down Expand Up @@ -219,7 +219,7 @@ private static string ObtainServiceDiscoveryIPv4()
{
try
{
var localIpV4 = System.Environment.GetEnvironmentVariable(LocalServiceDiscoveryIPv4);
var localIpV4 = System.Environment.GetEnvironmentVariable(LocalServiceDiscoveryIPv4Variable);
if (localIpV4 != null)
return localIpV4;

Expand Down

0 comments on commit e10e926

Please sign in to comment.