Mercurial > hg > orthanc
changeset 5520:d7c24c9c9448 pg-transactions
removed useless try/catch
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Jan 2024 09:24:55 +0100 |
parents | 2c5eb1ef26a0 |
children | 0d0f8788884a |
files | OrthancServer/Plugins/Engine/OrthancPluginDatabaseV4.cpp |
diffstat | 1 files changed, 4 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Plugins/Engine/OrthancPluginDatabaseV4.cpp Tue Jan 30 09:21:41 2024 +0100 +++ b/OrthancServer/Plugins/Engine/OrthancPluginDatabaseV4.cpp Tue Jan 30 09:24:55 2024 +0100 @@ -1469,19 +1469,11 @@ } else { - try - { - DatabasePluginMessages::DatabaseRequest request; - DatabasePluginMessages::DatabaseResponse response; + DatabasePluginMessages::DatabaseRequest request; + DatabasePluginMessages::DatabaseResponse response; - ExecuteDatabase(response, *this, DatabasePluginMessages::OPERATION_MEASURE_LATENCY, request); - return response.measure_latency().latency_us(); - - } - catch (OrthancException& e) - { - throw; - } + ExecuteDatabase(response, *this, DatabasePluginMessages::OPERATION_MEASURE_LATENCY, request); + return response.measure_latency().latency_us(); } }