claude-code: drop the machines data only the guard read
With the guard gone nothing reads the machines' names, domains and addresses: remove Machine, the name lookup and the ten-minute timer that resolved them again, so the tools' table is read only when a followed state changes. Also remove the now unused cut helper.
This commit is contained in:
@@ -92,11 +92,3 @@ func InsteadOf(m *MeshTools) string {
|
||||
" need, none is worked around: say so, and the tool is created in the module that owns it, on its seat.\n")
|
||||
return b.String()
|
||||
}
|
||||
|
||||
func cut(s string, n int) string {
|
||||
s = strings.Join(strings.Fields(s), " ")
|
||||
if r := []rune(s); len(r) > n {
|
||||
return string(r[:n-1]) + "…"
|
||||
}
|
||||
return s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user