diff --git a/cmd/hivemind-lite/main.go b/cmd/hivemind-lite/main.go new file mode 100644 index 0000000..e41a223 --- /dev/null +++ b/cmd/hivemind-lite/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("hivemind lite") +} diff --git a/internal/config/config.go b/internal/config/config.go index 033a094..3795d3b 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -9,9 +9,6 @@ import ( "github.com/BurntSushi/toml" ) -// TODO: make all configs have a codegen verification and merging -// assume that 0 and "" are invalid values, i.e. use -1 for unset - type Configs struct { Master MasterConfig Dns DnsConfig diff --git a/internal/registry/registry.go b/internal/registry/registry.go index 9e425d2..610e153 100644 --- a/internal/registry/registry.go +++ b/internal/registry/registry.go @@ -123,15 +123,6 @@ func (r *Registry) RemoveNode(node types.Node) error { func (r *Registry) Set(nodes map[string]types.Node) error { r.lock.Lock() - equalFunc := func(a, b types.Node) bool { - return a.Hostname == b.Hostname - } - - if maps.EqualFunc(r.nodes, nodes, equalFunc) { - r.lock.Unlock() - return nil - } - r.nodes = maps.Clone(nodes) snapshot := r.snapshot() r.lock.Unlock()