mirror of
https://github.com/MeshCore-Beacon/beacon-server.git
synced 2026-10-23 00:41:29 +00:00
chore: typo in refresh view comment and add note about node type func
NodeTypeName is fine as is with possible concatenation of the value as there is unlikely to be more than 256 node types
This commit is contained in:
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -147,7 +147,7 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
// refresh meterialized views on boot or restart to stay fresh
|
||||
// refresh materialized views on boot or restart to stay fresh
|
||||
refreshMaterializedViews(ctx, store)
|
||||
|
||||
// ── Seed config data ─────────────────────────────────────────────────────
|
||||
|
||||
@@ -64,6 +64,7 @@ type Node struct {
|
||||
}
|
||||
|
||||
// NodeTypeName returns a human-readable name for a node type integer.
|
||||
// NOTE: truncation is fine here until there are at least over 200 types of node
|
||||
func NodeTypeName(t int16) string {
|
||||
switch byte(t) {
|
||||
case meshcore.AdvertTypeChat:
|
||||
|
||||
Reference in new issue
Block a user