Add a useful comment

This commit is contained in:
Andrew Ayer
2025-05-01 11:21:13 -04:00
parent 13837fde04
commit 3765b4240b

View File

@@ -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.