mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 11:05:45 +00:00
ipn: add comment about thread-safety to StateStore
Updates #cleanup Signed-off-by: Percy Wegmann <percy@tailscale.com>
This commit is contained in:
parent
0cb86468ca
commit
6f66f5a75a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user