Skip to content

Commit 47643a9

Browse files
committed
Remove broker state from labels
automatic style fix at line 4713
1 parent 8d775ef commit 47643a9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/rdkafka_broker.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@
8282
static const int rd_kafka_max_block_ms = 1000;
8383

8484
const char *rd_kafka_broker_state_names[] = {
85-
"INIT", "DOWN", "TRY_CONNECT", "CONNECT", "SSL_HANDSHAKE",
86-
"AUTH_LEGACY", "UP", "UPDATE", "APIVERSION_QUERY", "AUTH_HANDSHAKE",
87-
"AUTH_REQ", "REAUTH"};
85+
"INIT", "DOWN", "TRY_CONNECT", "CONNECT",
86+
"SSL_HANDSHAKE", "AUTH_LEGACY", "UP", "APIVERSION_QUERY",
87+
"AUTH_HANDSHAKE", "AUTH_REQ", "REAUTH"};
8888

8989
const char *rd_kafka_secproto_names[] = {
9090
[RD_KAFKA_PROTO_PLAINTEXT] = "plaintext",
@@ -4711,10 +4711,11 @@ static int rd_kafka_broker_thread_main(void *arg) {
47114711
;
47124712

47134713
#if WITH_SSL
4714-
/* Remove OpenSSL per-thread error state to avoid memory leaks */
4714+
/* Remove OpenSSL per-thread error state to avoid memory leaks
4715+
*/
47154716
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
4716-
/*(OpenSSL libraries handle thread init and deinit)
4717-
* https://github.com/openssl/openssl/pull/1048 */
4717+
/*(OpenSSL libraries handle thread init and deinit)
4718+
* https://github.com/openssl/openssl/pull/1048 */
47184719
#elif OPENSSL_VERSION_NUMBER >= 0x10000000L
47194720
ERR_remove_thread_state(NULL);
47204721
#endif

0 commit comments

Comments
 (0)