ares_channel unique_ptr instead of shared_ptr

This commit is contained in:
Arthur Passos 2022-07-11 10:19:25 -03:00
parent 5c221464ba
commit 0c6329bdd3
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ namespace DB {
}
}
CARESPTRResolver::CARESPTRResolver() : channel(std::make_shared<ares_channel>()) {
CARESPTRResolver::CARESPTRResolver() : channel(std::make_unique<ares_channel>()) {
init();
}

View File

@ -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;
};
}