mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-17 11:25:33 +02:00
Init HTTP client only if Registry is used (#99)
This commit is contained in:
@@ -72,9 +72,13 @@ struct TokenResponse: Decodable {
|
||||
}
|
||||
}
|
||||
|
||||
fileprivate let httpClient = HTTPClient(eventLoopGroupProvider: .createNew)
|
||||
|
||||
class Registry {
|
||||
private let httpClient = HTTPClient(eventLoopGroupProvider: .createNew)
|
||||
|
||||
deinit {
|
||||
try! httpClient.syncShutdown()
|
||||
}
|
||||
|
||||
var baseURL: URL
|
||||
var namespace: String
|
||||
|
||||
|
||||
Reference in New Issue
Block a user