cleanup: Remove sparkd login creds from PubSubServerConfig

It only needs a Sparkd url to download logging config. TBH, we can probably
get rid of that too, and simply read the local spark.conf.
This commit is contained in:
John Colvin committed 2024-06-06 09:15:17 -05:00
1 parent a3ca06addc
commit 45f02391d1
1 file changed
-17
@@ -10,20 +10,6 @@ using System.Text.Json;
using System.Text.Json.Serialization;
public class PubSubServerConfig {
/// <summary>
/// The login user for sparkd
/// </summary>
[JsonPropertyName("user")]
[Option("user", HelpText = "The sparkd login user")]
public string? User { get; set; }
/// <summary>
/// The login password for sparkd
/// </summary>
[JsonPropertyName("password")]
[Option("pass", HelpText = "The sparkd login password")]
public string? Password { get; set; }
/// <summary>
/// The config server url for sparkd
/// </summary>
@@ -47,7 +33,6 @@ public class PubSubServerConfig {
public static PubSubServerConfig Default() =>
new() {
User = "bts",
Sparkd = "http://localhost:8000/config",
SimpleEchoServer = false,
PubSub = PubSubConfig.Default(),
@@ -55,8 +40,6 @@ public class PubSubServerConfig {
};
public void MergeWith(PubSubServerConfig other) {
User ??= other.User;
Password ??= other.Password;
Sparkd ??= other.Sparkd;
SimpleEchoServer ??= other.SimpleEchoServer;
PubSub ??= other.PubSub;