Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

fix nullptr ThriftClient #452

Merged
merged 1 commit into from
Mar 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/common/thrift/ThriftClientManager.inl
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ std::shared_ptr<ClientType> ThriftClientManager<ClientType>::client(
oss << resolved;
LOG(INFO) << oss.str();
} catch(const std::exception& e) {
// if we resolve failed, just return a connection, we will retry later
LOG(ERROR) << e.what();
return nullptr;
}
}

Expand Down