Skip to content

Commit bc3beee

Browse files
committed
fix: clang-format alignment in exqlite_busy_handler
1 parent fd89402 commit bc3beee

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;
@@ -330,7 +329,7 @@ exqlite_busy_handler(void* arg, int count)
330329
return 0;
331330

332331
static const int delays[] = {1, 2, 5, 10, 15, 20, 25, 25, 25, 50, 50};
333-
static const int ndelay = sizeof(delays) / sizeof(delays[0]);
332+
static const int ndelay = sizeof(delays) / sizeof(delays[0]);
334333

335334
int total_waited = 0;
336335
for (int i = 0; i < count && i < ndelay; i++)
@@ -341,7 +340,7 @@ exqlite_busy_handler(void* arg, int count)
341340
if (total_waited >= conn->busy_timeout_ms)
342341
return 0;
343342

344-
int sleep_ms = (count < ndelay) ? delays[count] : 50;
343+
int sleep_ms = (count < ndelay) ? delays[count] : 50;
345344
int remaining = conn->busy_timeout_ms - total_waited;
346345
if (sleep_ms > remaining)
347346
sleep_ms = remaining;

0 commit comments

Comments
 (0)