mirror of
				https://github.com/yattee/yattee.git
				synced 2025-10-31 12:41:57 +00:00 
			
		
		
		
	Performance fix
This commit is contained in:
		| @@ -7,8 +7,10 @@ struct KeychainModel { | ||||
|     var keychain = Keychain(service: "stream.yattee.app") | ||||
|  | ||||
|     func updateAccountKey(_ account: Account, _ key: String, _ value: String) { | ||||
|         DispatchQueue.global(qos: .background).async { | ||||
|             keychain[accountKey(account, key)] = value | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     func getAccountKey(_ account: Account, _ key: String) -> String? { | ||||
|         keychain[accountKey(account, key)] | ||||
| @@ -19,8 +21,10 @@ struct KeychainModel { | ||||
|     } | ||||
|  | ||||
|     func removeAccountKeys(_ account: Account) { | ||||
|         DispatchQueue.global(qos: .background).async { | ||||
|             try? keychain.remove(accountKey(account, "token")) | ||||
|             try? keychain.remove(accountKey(account, "username")) | ||||
|             try? keychain.remove(accountKey(account, "password")) | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arkadiusz Fal
					Arkadiusz Fal