mirror of
				https://github.com/tailscale/tailscale.git
				synced 2025-10-31 13:05:22 +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:
		 Percy Wegmann
					Percy Wegmann
				
			
				
					committed by
					
						 Percy Wegmann
						Percy Wegmann
					
				
			
			
				
	
			
			
			 Percy Wegmann
						Percy Wegmann
					
				
			
						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. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user