mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
ares_channel unique_ptr instead of shared_ptr
This commit is contained in:
parent
5c221464ba
commit
0c6329bdd3
@ -15,7 +15,7 @@ namespace DB {
|
||||
}
|
||||
}
|
||||
|
||||
CARESPTRResolver::CARESPTRResolver() : channel(std::make_shared<ares_channel>()) {
|
||||
CARESPTRResolver::CARESPTRResolver() : channel(std::make_unique<ares_channel>()) {
|
||||
init();
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ namespace DB {
|
||||
|
||||
void resolve(const std::string & ip, std::vector<std::string> & response);
|
||||
|
||||
std::shared_ptr<ares_channel> channel;
|
||||
std::unique_ptr<ares_channel> channel;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user