Skip to content

Commit

Permalink
addressed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshGandhi-AWS committed Sep 28, 2023
1 parent 72b7af8 commit a4ce621
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ void attemptConnection()
try
{
Retry::ExponentialRetryConfig retryConfig = {10 * 1000, 900 * 1000, -1, nullptr};
auto publishLambda = []() -> bool
{
auto publishLambda = []() -> bool {
int connectionStatus = resourceManager.get()->establishConnection(config.config);
if (SharedCrtResourceManager::ABORT == connectionStatus)
{
Expand All @@ -203,8 +202,8 @@ void attemptConnection()
return false;
}
};
std::thread attemptConnectionThread([retryConfig, publishLambda]
{ Retry::exponentialBackoff(retryConfig, publishLambda); });
std::thread attemptConnectionThread(
[retryConfig, publishLambda] { Retry::exponentialBackoff(retryConfig, publishLambda); });
attemptConnectionThread.join();
}
catch (const std::exception &e)
Expand Down

0 comments on commit a4ce621

Please sign in to comment.