dnswatcher/internal/state
clawbot b162ca743b
Some checks failed
Check / check (pull_request) Failing after 5m31s
fix: use full Lock in State.Save() to prevent data race (closes #17)
State.Save() was using RLock but mutating s.snapshot.LastUpdated,
which is a write operation. This created a data race since other
goroutines could also hold a read lock and observe a partially
written timestamp. Changed to full Lock to ensure exclusive access
during the mutation.
2026-02-21 00:51:58 -08:00
..
state_test_helper.go test: add watcher orchestrator tests with mock dependencies 2026-02-19 13:48:38 -08:00
state.go fix: use full Lock in State.Save() to prevent data race (closes #17) 2026-02-21 00:51:58 -08:00