From c86bad3875db8a2e10f5390828c45fcfa9f1430f Mon Sep 17 00:00:00 2001 From: "Enot (ded) Skelly" Date: Fri, 12 Jun 2026 08:49:41 -0700 Subject: [PATCH] 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 --- cmd/beacon/main.go | 2 +- internal/api/nodes.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/beacon/main.go b/cmd/beacon/main.go index fe7c42d..55e303e 100644 --- a/cmd/beacon/main.go +++ b/cmd/beacon/main.go @@ -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 ───────────────────────────────────────────────────── diff --git a/internal/api/nodes.go b/internal/api/nodes.go index 2302bf9..67eb76f 100644 --- a/internal/api/nodes.go +++ b/internal/api/nodes.go @@ -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: