Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit 424eb90

Browse files
authored
FABN-1624 handle discovery peer connection error (#327) (#333)
Connection errors are not being handled during the assignment phase when a network is beingh initialized. Postpone the connection check until discovery service needs the connection. Signed-off-by: Bret Harrison <beharrison@nc.rr.com>
1 parent 915f5d1 commit 424eb90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fabric-network/src/network.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export class NetworkImpl implements Network {
325325
const discoverers = [];
326326
for (const peer of targets) {
327327
const discoverer = this.channel.client.newDiscoverer(peer.name, peer.mspid);
328-
await discoverer.connect(peer.endpoint);
328+
discoverer.setEndpoint(peer.endpoint);
329329
discoverers.push(discoverer);
330330
}
331331
this.discoveryService = this.channel.newDiscoveryService(this.channel.name);

0 commit comments

Comments
 (0)