We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26d2eb8 commit b6218fcCopy full SHA for b6218fc
Coder-Desktop/Coder-Desktop/State.swift
@@ -163,13 +163,18 @@ class AppState: ObservableObject {
163
164
refreshTask = Task {
165
let res = try? await retry(floor: .milliseconds(100), ceil: .seconds(10)) {
166
- let config = try await client.agentConnectionInfoGeneric()
167
- return config.hostname_suffix
+ do {
+ let config = try await client.agentConnectionInfoGeneric()
168
+ return config.hostname_suffix
169
+ } catch {
170
+ logger.error("failed to get agent connection info (retrying): \(error)")
171
+ throw error
172
+ }
173
}
174
return res
175
176
- self.hostnameSuffix = await refreshTask?.value ?? Self.defaultHostnameSuffix
177
+ hostnameSuffix = await refreshTask?.value ?? Self.defaultHostnameSuffix
178
179
180
0 commit comments