Removed the voterRegistryMessage and swaped the usage of it to BulletinBoardMessage

Voter-Registry
Vladimir Eliezer Tokarev 2016-02-27 03:55:45 -08:00
parent 87420a9d7d
commit 311d1e8e8e
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ public class SimpleRegistry implements VoterRegistry{
* @param basicMessage BasicMessage * @param basicMessage BasicMessage
* @return BulletinBoardMessage * @return BulletinBoardMessage
*/ */
private BulletinBoardMessage CreateBulletinBoardMessage(UnsignedBulletinBoardMessage basicMessage) { protected BulletinBoardMessage CreateBulletinBoardMessage(UnsignedBulletinBoardMessage basicMessage) {
try { try {
BulletinBoardMessage.Builder bulletinBoardMessage = BulletinBoardMessage.newBuilder(); BulletinBoardMessage.Builder bulletinBoardMessage = BulletinBoardMessage.newBuilder();
@ -101,7 +101,7 @@ public class SimpleRegistry implements VoterRegistry{
} }
public void GetGroups(GroupID groupID, RegistryCallBack callback) { public void GetGroups(GroupID groupID, RegistryCallBack callback) {
List<String> GroupsActionsTags = new ArrayList<String>() {{ List<String> GroupsActionsTags = new ArrayList<String>(2) {{
add(RegistryTags.GROUP_ID_TAG + groupID.getId()); add(RegistryTags.GROUP_ID_TAG + groupID.getId());
}}; }};
bulletinBoardClient.readMessages(CollectionMessagesUtils.GenerateFiltersFromTags(GroupsActionsTags), bulletinBoardClient.readMessages(CollectionMessagesUtils.GenerateFiltersFromTags(GroupsActionsTags),