Skip to content

Commit bee7343

Browse files
authored
Moved windows sleep and clang check removal from beta branch (#2139)
1 parent 14e9c33 commit bee7343

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/confluent_kafka/src/confluent_kafka.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929

3030
#include <stdarg.h>
3131

32+
#ifdef _WIN32
33+
#include <windows.h>
34+
#endif
3235

3336
/**
3437
* @brief KNOWN ISSUES
@@ -2057,7 +2060,11 @@ int wait_for_oauth_token_set(Handle *h) {
20572060
while (!h->oauth_token_set && elapsed_sec < max_wait_sec) {
20582061
CallState cs;
20592062
CallState_begin(h, &cs);
2063+
#ifdef _WIN32
2064+
Sleep(retry_interval_sec * 1000);
2065+
#else
20602066
sleep(retry_interval_sec);
2067+
#endif
20612068
CallState_end(h, &cs);
20622069
elapsed_sec += retry_interval_sec;
20632070
}

tools/source-package-verification.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ if [[ $OS_NAME == linux && $ARCH == x64 ]]; then
5252
# Run these actions and tests only in this case
5353
echo "Checking code formatting ..."
5454
# Check all tracked files (Python and C)
55-
all_files=$(git ls-tree -r --name-only HEAD | egrep '\.(py|c|h)$')
56-
clang-format --version
55+
# Commenting out clang-format until consistent versions across platforms are available for dev and CI testing
56+
all_files=$(git ls-tree -r --name-only HEAD | egrep '\.(py)$') # egrep '\.(py|c|h)$')
57+
# clang-format --version
5758
tools/style-format.sh $all_files || exit 1
5859
echo "Building documentation ..."
5960
flake8 --exclude ./_venv,*_pb2.py,./build

0 commit comments

Comments
 (0)