mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
style: clang-tidy auto fixes (#2958)
Co-authored-by: godexsoft <385326+godexsoft@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2d6f82c27f
commit
af736717fc
@@ -85,10 +85,11 @@ Handle::disconnect() const
|
||||
Handle::FutureType
|
||||
Handle::asyncReconnect(std::string_view keyspace) const
|
||||
{
|
||||
if (auto rc = asyncDisconnect().await(); not rc) // sync
|
||||
if (auto rc = asyncDisconnect().await(); not rc) { // sync
|
||||
throw std::logic_error(
|
||||
"Reconnect to keyspace '" + std::string{keyspace} + "' failed: " + rc.error()
|
||||
);
|
||||
}
|
||||
return asyncConnect(keyspace);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user