mirror of
https://github.com/tailscale/tailscale.git
synced 2026-05-06 20:56:24 +02:00
If an error occurs with FileStore.WriteState, it should not record the provided value as this results in an inconsistency between what is cached in memory and what is stored on disk. Also, update the documentation of StateStore.ReadState to indicate that the returned value should be treated as immutable. This property is assumed by the fact that FileStore.ReadState returns the same slice of bytes for repeated calls to the same key. Updates #cleanup Signed-off-by: Joe Tsai <joetsai@digital-static.net>