Skip to content

Commit 7bcc339

Browse files
committed
chore: improve kafks_flush and precompile
1 parent 008c7c9 commit 7bcc339

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ exrdkafka-*.tar
2525
# Temporary files, for example, from tests.
2626
/tmp/
2727

28-
/priv/exrdkafka_nif.so
28+
/priv/exrdkafka_nif.so
29+
checksum.exs
30+
.cursorignore

c_src/exrdkafka_producer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ ERL_NIF_TERM enif_produce_sync(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv
545545
}
546546

547547
// Flush messages to broker
548-
rd_kafka_resp_err_t flush_result = rd_kafka_flush(producer->kf, 1000); // 1000 is the timeout in milliseconds
548+
rd_kafka_resp_err_t flush_result = rd_kafka_flush(producer->kf, 1);
549549

550550
if(flush_result != RD_KAFKA_RESP_ERR_NO_ERROR)
551551
return make_error(env, enif_make_int(env, flush_result));

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ defmodule Exrdkafka.MixProject do
7979
"mix.exs",
8080
"README.md",
8181
"LICENSE",
82-
"checksum-*.exs",
82+
"checksum.exs",
8383
"VERSION"
8484
],
8585
description: "Elixir Kafka client NIF for librdkafka",

0 commit comments

Comments
 (0)