Skip to content

Commit ad630a1

Browse files
committed
fix: clang-format alignment in exqlite_busy_handler
1 parent 7c44626 commit ad630a1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

c_src/sqlite3_nif.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <erl_nif.h>
1111
#include <sqlite3.h>
1212

13-
1413
static ERL_NIF_TERM am_ok;
1514
static ERL_NIF_TERM am_error;
1615
static ERL_NIF_TERM am_badarg;
@@ -325,7 +324,7 @@ exqlite_busy_handler(void* arg, int count)
325324
return 0;
326325

327326
static const int delays[] = {1, 2, 5, 10, 15, 20, 25, 25, 25, 50, 50};
328-
static const int ndelay = sizeof(delays) / sizeof(delays[0]);
327+
static const int ndelay = sizeof(delays) / sizeof(delays[0]);
329328

330329
int total_waited = 0;
331330
for (int i = 0; i < count && i < ndelay; i++)
@@ -336,7 +335,7 @@ exqlite_busy_handler(void* arg, int count)
336335
if (total_waited >= conn->busy_timeout_ms)
337336
return 0;
338337

339-
int sleep_ms = (count < ndelay) ? delays[count] : 50;
338+
int sleep_ms = (count < ndelay) ? delays[count] : 50;
340339
int remaining = conn->busy_timeout_ms - total_waited;
341340
if (sleep_ms > remaining)
342341
sleep_ms = remaining;

0 commit comments

Comments
 (0)