Skip to content

Commit

Permalink
Merge branch 'master' into new-table-names
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Dec 13, 2023
2 parents b56e140 + 460e828 commit c6dd2e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions osu.ElasticIndexer/AppSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static AppSettings()
Schema = Environment.GetEnvironmentVariable("SCHEMA") ?? string.Empty;
Prefix = Environment.GetEnvironmentVariable("ES_INDEX_PREFIX") ?? string.Empty;
ElasticsearchHost = Environment.GetEnvironmentVariable("ES_HOST") ?? "http://localhost:9200";
RedisHost = Environment.GetEnvironmentVariable("REDIS_HOST") ?? "localhost";
AliasName = $"{Prefix}scores";

if (string.IsNullOrEmpty(Schema)) Console.WriteLine(ConsoleColor.Yellow, "WARNING: Running without SCHEMA envvar specification");
if (!string.IsNullOrEmpty(Prefix)) Console.WriteLine(ConsoleColor.Yellow, $"WARNING: Running with PREFIX envvar specification ({Prefix})");
Expand All @@ -37,10 +37,8 @@ static AppSettings()

public static string Prefix { get; }

public static string RedisHost { get; }

public static string Schema { get; }

public static string AliasName { get; } = $"{AppSettings.Prefix}scores";
public static string AliasName { get; }
}
}

0 comments on commit c6dd2e9

Please sign in to comment.