Skip to content

Commit

Permalink
Resolved the review comments
Browse files Browse the repository at this point in the history
Signed-off-by: ArchanaArige <nigam_archana@yahoo.co.in>
  • Loading branch information
ArchanaArige committed Jan 25, 2023
1 parent c382659 commit 1ef93ba
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/platform/fabric/gateway/FabricGateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,11 +492,10 @@ export class FabricGateway {
async getActiveOrderersList(channel_name) {
const network = await this.gateway.getNetwork(channel_name);
let orderers = [];
let ordererAtrributes;
for (let [key, value] of network.discoveryService.channel.committers) {
ordererAtrributes = {
name: key,
connected: value.connected
for (let [orderer, ordererMetadata] of network.discoveryService.channel.committers) {
let ordererAtrributes = {
name: orderer,
connected: ordererMetadata.connected
}
orderers.push(ordererAtrributes);
}
Expand Down

0 comments on commit 1ef93ba

Please sign in to comment.