formatting

This commit is contained in:
Benjamin Sergeant 2019-12-19 19:13:55 -08:00
parent de24aac7d5
commit 3e786fe23a
3 changed files with 6 additions and 6 deletions

View File

@ -117,8 +117,7 @@ namespace
{
char localBuffer[128];
Boolean success;
success =
CFStringGetCString(message, localBuffer, 128, kCFStringEncodingUTF8);
success = CFStringGetCString(message, localBuffer, 128, kCFStringEncodingUTF8);
if (success)
{
errMsg = localBuffer;

View File

@ -59,8 +59,7 @@ namespace ix
}
if (mbedtls_ssl_config_defaults(&_conf,
(isClient) ? MBEDTLS_SSL_IS_CLIENT
: MBEDTLS_SSL_IS_SERVER,
(isClient) ? MBEDTLS_SSL_IS_CLIENT : MBEDTLS_SSL_IS_SERVER,
MBEDTLS_SSL_TRANSPORT_STREAM,
MBEDTLS_SSL_PRESET_DEFAULT) != 0)
{

View File

@ -132,11 +132,13 @@ namespace ix
{
seconds = 30;
spdlog::warn("Error parsing Retry-After header. "
"Using {} for the sleep duration", seconds);
"Using {} for the sleep duration",
seconds);
}
spdlog::warn("Error 429 - Too Many Requests. ws will sleep "
"and retry after {} seconds", retryAfter);
"and retry after {} seconds",
retryAfter);
throttled = true;
auto duration = std::chrono::seconds(seconds);