Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com>
)
var endpoint: String
- func perform() async throws -> some IntentResult {
+ func perform() async throws -> some IntentResult & ReturnsValue<AppIntentsPeer> {
let peerConfigurationUpdate = AppIntentsPeer()
peerConfigurationUpdate.publicKey = publicKey
peerConfigurationUpdate.endpoint = endpoint
@Dependency
var tunnelsManager: TunnelsManager
- func perform() async throws -> some ReturnsValue {
+ func perform() async throws -> some IntentResult & ReturnsValue<[String]> {
guard let tunnelContainer = tunnelsManager.tunnel(named: tunnelName) else {
throw GetPeersIntentError.wrongTunnel(name: tunnelName)
}