feat: remove hostname from labels
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
// Create Spore instance with custom labels
|
// Create Spore instance with custom labels
|
||||||
Spore spore({
|
Spore spore({
|
||||||
{"app", "neopattern"},
|
{"app", "neopattern"},
|
||||||
{"device", "led_strip"},
|
{"role", "led"},
|
||||||
{"pixels", String(NEOPIXEL_LENGTH)},
|
{"pixels", String(NEOPIXEL_LENGTH)},
|
||||||
{"pin", String(NEOPIXEL_PIN)}
|
{"pin", String(NEOPIXEL_PIN)}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -107,7 +107,6 @@ void NetworkManager::setupWiFi() {
|
|||||||
}
|
}
|
||||||
ctx.self.lastSeen = millis();
|
ctx.self.lastSeen = millis();
|
||||||
ctx.self.status = NodeInfo::ACTIVE;
|
ctx.self.status = NodeInfo::ACTIVE;
|
||||||
ctx.self.labels["hostname"] = ctx.hostname;
|
|
||||||
|
|
||||||
// Ensure member list has an entry for this node
|
// Ensure member list has an entry for this node
|
||||||
auto &memberList = *ctx.memberList;
|
auto &memberList = *ctx.memberList;
|
||||||
|
|||||||
Reference in New Issue
Block a user