Skip to content

Commit

Permalink
fix: wolff_client:get_leader_connections/3 typespec
Browse files Browse the repository at this point in the history
  • Loading branch information
thalesmg committed May 2, 2024
1 parent 1d0a46d commit 2779625
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* 1.10.3
- Fixed typespec for `wolff_client:get_leader_connections/3`.

* 1.10.2 (merge 1.5.13)
- Use long-lived metadata connection.
This is to avoid having to excessively re-establish connection when there are many concurrent connectivity checks.
Expand Down
2 changes: 1 addition & 1 deletion src/wolff.app.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, wolff,
[{description, "Kafka's publisher"},
{vsn, "1.10.2"},
{vsn, "1.10.3"},
{registered, []},
{applications,
[kernel,
Expand Down
2 changes: 1 addition & 1 deletion src/wolff.appup.src
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%% -*- mode: erlang; -*-
{"1.10.2",
{"1.10.3",
[
],
[
Expand Down
2 changes: 1 addition & 1 deletion src/wolff_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ get_id(Pid) ->
get_leader_connections(Client, Topic) ->
safe_call(Client, {get_leader_connections, Topic, all_partitions}).

-spec get_leader_connections(pid(), topic(), pos_integer()) ->
-spec get_leader_connections(pid(), topic(), all_partitions | pos_integer()) ->
{ok, [{partition(), pid() | ?conn_down(_)}]} | {error, any()}.
get_leader_connections(Client, Topic, MaxPartitions) ->
safe_call(Client, {get_leader_connections, Topic, MaxPartitions}).
Expand Down

0 comments on commit 2779625

Please sign in to comment.