Current section

113 Versions

Jump to

Compare versions

7 files changed
+34 additions
-32 deletions
  @@ -23,5 +23,5 @@
23 23 [{<<"kafka_protocol">>,
24 24 [{<<"app">>,<<"kafka_protocol">>},
25 25 {<<"optional">>,false},
26 - {<<"requirement">>,<<"4.2.3">>}]}]}.
27 - {<<"version">>,<<"4.4.0">>}.
26 + {<<"requirement">>,<<"4.2.5">>}]}]}.
27 + {<<"version">>,<<"4.4.1">>}.
  @@ -1,4 +1,4 @@
1 - {deps, [{kafka_protocol, "4.2.3"}]}.
1 + {deps, [{kafka_protocol, "4.2.5"}]}.
2 2 {project_plugins, [{rebar3_lint, "~> 3.2.5"}]}.
3 3 {edoc_opts, [{preprocess, true}]}.
4 4 {erl_opts, [warnings_as_errors, warn_unused_vars,warn_shadow_vars,warn_obsolete_guard,debug_info]}.
  @@ -7,14 +7,13 @@
7 7 deprecated_functions]}.
8 8 {profiles, [
9 9 {test, [
10 - {deps, [ {docopt, {git, "https://github.com/zmstone/docopt-erl.git", {tag, "0.1.3"}}}
11 - , {hut, "1.3.0"}
10 + {deps, [ {hut, "1.3.0"}
12 11 , {jsone, "1.7.0"}
13 12 , {meck, "0.9.2"}
14 - , {proper, "1.4.0"}
13 + , {proper, "1.5.0"}
15 14 , {snappyer, "1.2.9"}
16 15 , {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {branch, "1.0.10"}}}
17 - , {lz4b, "0.0.11"}
16 + , {lz4b, "0.0.13"}
18 17 , {ezstd, "1.1.0"}
19 18 ]},
20 19 {erl_opts, [warnings_as_errors, {d, build_brod_cli}]}
  @@ -41,7 +40,6 @@
41 40 , {api_reference, false}
42 41 ]}.
43 42 {hex, [{doc, ex_doc}]}.
44 - {escript_incl_apps, [docopt, brod]}.
45 43 {ct_opts, [{enable_builtin_hooks, false}]}.
46 44 {dialyzer, [{warnings, [unknown]}]}.
47 45 {cover_enabled, true}.
  @@ -1,6 +1,6 @@
1 1 {application,brod,
2 2 [{description,"Apache Kafka Erlang client library"},
3 - {vsn,"4.4.0"},
3 + {vsn,"4.4.1"},
4 4 {registered,[]},
5 5 {applications,[kernel,stdlib,kafka_protocol]},
6 6 {env,[]},
  @@ -61,6 +61,7 @@
61 61 , handle_call/3
62 62 , handle_cast/2
63 63 , handle_info/2
64 + , handle_continue/2
64 65 , init/1
65 66 , terminate/2
66 67 ]).
  @@ -344,15 +345,14 @@ init({BootstrapEndpoints, ClientId, Config}) ->
344 345 erlang:process_flag(trap_exit, true),
345 346 Tab = ets:new(?ETS(ClientId),
346 347 [named_table, protected, {read_concurrency, true}]),
347 - self() ! init,
348 348 {ok, #state{ client_id = ClientId
349 349 , bootstrap_endpoints = BootstrapEndpoints
350 350 , config = Config
351 351 , workers_tab = Tab
352 - }}.
352 + }, {continue, init}}.
353 353
354 354 %% @private
355 - handle_info(init, State0) ->
355 + handle_continue(init, State0) ->
356 356 Endpoints = State0#state.bootstrap_endpoints,
357 357 State1 = ensure_metadata_connection(State0),
358 358 {ok, ProducersSupPid} = brod_producers_sup:start_link(),
  @@ -361,7 +361,9 @@ handle_info(init, State0) ->
361 361 , producers_sup = ProducersSupPid
362 362 , consumers_sup = ConsumersSupPid
363 363 },
364 - {noreply, State};
364 + {noreply, State}.
365 +
366 + %% @private
365 367 handle_info({'EXIT', Pid, Reason}, #state{ client_id = ClientId
366 368 , producers_sup = Pid
367 369 } = State) ->
  @@ -164,7 +164,7 @@
164 164 %%
165 165 %% <li>`message_type': The type of message that is going to be handled
166 166 %% by the callback module. Can be either message or message set.
167 - %% Optional, defaults to `message'</li>
167 + %% Optional, defaults to `message_set'</li>
168 168 %%
169 169 %% <li>`init_data': The `term()' that is going to be passed to
170 170 %% `CbModule:init/2' when initializing the subscriber. Optional,
Loading more files…