printed relay list in every case at start

This commit is contained in:
Vishal
2022-12-21 11:11:17 +05:30
parent 99be9f65ea
commit 08180c00a8
2 changed files with 20 additions and 6 deletions

View File

@@ -384,3 +384,19 @@ String getMultiUserRequest(String subscriptionId, Set<String> publicKeys, int nu
s = getJsonList(publicKeys);
return strSubscription1 + s + strSubscription2;
}
// ends with a newline
void printSet( Set<String> toPrint, [ String prefix = ""]) {
stdout.write(prefix);
int i = 0;
toPrint.forEach((element) {
if( i != 0) {
stdout.write(", ");
}
stdout.write(element);
i++;
});
stdout.write("\n");
}