From 3765b4240b2f39ca8fd7375839521b15f968db55 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Thu, 1 May 2025 11:21:13 -0400 Subject: [PATCH] Add a useful comment --- monitor/state.go | 1 + 1 file changed, 1 insertion(+) diff --git a/monitor/state.go b/monitor/state.go index 48097e4..a31e803 100644 --- a/monitor/state.go +++ b/monitor/state.go @@ -24,6 +24,7 @@ type LogState struct { LastSuccess time.Time `json:"last_success"` } +// Methods are safe to call concurrently. type StateProvider interface { // Initialize the state. Called before any other method in this interface. // Idempotent: returns nil if the state is already initialized.