mirror of https://github.com/cirruslabs/tart.git
Init HTTP client only if Registry is used (#99)
This commit is contained in:
parent
35904dc637
commit
afb23a3e3a
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue