Skip to content

Commit

Permalink
chore: share shard info independently on waku version (#4507)
Browse files Browse the repository at this point in the history
  • Loading branch information
mprakhov authored Dec 22, 2023
1 parent 1317f0c commit 9cbfda6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion protocol/communities_events_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2361,7 +2361,7 @@ func testPrivilegedMemberAcceptsRequestToJoinAfterMemberLeave(base CommunityEven

// check event sender received member leave update from ControlNode
_, err = WaitOnMessengerResponse(
base.GetControlNode(),
base.GetEventSender(),
checkMemberLeave,
"event sender did not receive member leave update",
)
Expand Down
6 changes: 1 addition & 5 deletions protocol/messenger_community_shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@ import (
)

func (m *Messenger) sendPublicCommunityShardInfo(community *communities.Community) error {
if m.transport.WakuVersion() != 2 {
return nil
}

if !community.IsControlNode() {
return nil
return communities.ErrNotControlNode
}

publicShardInfo := &protobuf.PublicShardInfo{
Expand Down

0 comments on commit 9cbfda6

Please sign in to comment.