Skip to content

Commit

Permalink
Use correct timeout option (#3032)
Browse files Browse the repository at this point in the history
The gateway’s endpoint connection factory is currently using the EndorsementTimeout option when making connections.  It should be using the DialTimeout.

Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>
  • Loading branch information
andrew-coleman committed Nov 9, 2021
1 parent d67d421 commit 534b1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func newServer(localEndorser peerproto.EndorserClient, discovery Discovery, find
localEndorser: &endorser{client: localEndorser, endpointConfig: &endpointConfig{pkiid: localPKIID, address: localEndpoint, mspid: localMSPID}},
discovery: discovery,
logger: logger,
endpointFactory: &endpointFactory{timeout: options.EndorsementTimeout},
endpointFactory: &endpointFactory{timeout: options.DialTimeout},
remoteEndorsers: map[string]*endorser{},
channelInitialized: map[string]bool{},
},
Expand Down

0 comments on commit 534b1c1

Please sign in to comment.