From 6f66f5a75a274cf44e7cafe1b6f1b1f681442af8 Mon Sep 17 00:00:00 2001 From: Percy Wegmann Date: Wed, 6 Mar 2024 12:29:20 -0600 Subject: [PATCH] ipn: add comment about thread-safety to StateStore Updates #cleanup Signed-off-by: Percy Wegmann --- ipn/store.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ipn/store.go b/ipn/store.go index 84ae00dd2..550aa8cba 100644 --- a/ipn/store.go +++ b/ipn/store.go @@ -72,6 +72,7 @@ func CurrentProfileKey(userID string) StateKey { } // StateStore persists state, and produces it back on request. +// Implementations of StateStore are expected to be safe for concurrent use. type StateStore interface { // ReadState returns the bytes associated with ID. Returns (nil, // ErrStateNotExist) if the ID doesn't have associated state.