From 3edb41180879d88f59964ab2e981ee695322543f Mon Sep 17 00:00:00 2001 From: "Alejandro M. Ramallo" Date: Fri, 13 Dec 2024 08:11:29 +0000 Subject: [PATCH] add ok return type Signed-off-by: Alejandro M. Ramallo --- CHANGELOG.md | 3 +++ src/partisan.app.src | 2 +- src/partisan_plumtree_broadcast_handler.erl | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d6f2680..5f26b7b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG # v5.0.0-rc.14 +## Changes +* Add `ok` as valid return for `exchange` callback in `partisan_plumbtree_broadcast_handler`. +# v5.0.0-rc.14 ## Fixes * Fixes the case where `partisan_plumbtree_broadcast` behaviour implementors' callbacks throw an exception which would crash the broadcast server. * Replace use of RPC in `partisan_plumbtree_broadcast` and use diff --git a/src/partisan.app.src b/src/partisan.app.src index f00c0bda..551fed18 100644 --- a/src/partisan.app.src +++ b/src/partisan.app.src @@ -2,7 +2,7 @@ {description, "Partisan is a scalable and flexible, TCP-based membership system and distribution layer for the BEAM." }, - {vsn, "5.0.0-rc.14"}, + {vsn, "5.0.0-rc.15"}, {registered, []}, {applications, [ kernel, diff --git a/src/partisan_plumtree_broadcast_handler.erl b/src/partisan_plumtree_broadcast_handler.erl index 9ae2c870..34351ca3 100644 --- a/src/partisan_plumtree_broadcast_handler.erl +++ b/src/partisan_plumtree_broadcast_handler.erl @@ -72,7 +72,7 @@ %% The exchange does not need to account for messages in-flight when it is %% started or broadcast during its operation. These can be taken care of in %% future exchanges. --callback exchange(node()) -> {ok, pid()} | {error, term()} | ignore. +-callback exchange(node()) -> ok | {ok, pid()} | {error, term()} | ignore. -optional_callbacks([broadcast_channel/0]).