mirror of https://github.com/cirruslabs/tart.git
Don't bind the unused error when catching connection-pool failures
This commit is contained in:
parent
d4d95f02e0
commit
1f556051b0
|
|
@ -9,7 +9,7 @@ class AgentResolver {
|
||||||
static func ResolveIP(_ controlSocketPath: String) async throws -> IPv4Address? {
|
static func ResolveIP(_ controlSocketPath: String) async throws -> IPv4Address? {
|
||||||
do {
|
do {
|
||||||
return try await resolveIP(controlSocketPath)
|
return try await resolveIP(controlSocketPath)
|
||||||
} catch let error as GRPCConnectionPoolError {
|
} catch is GRPCConnectionPoolError {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue