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

Commit 3c5f08a

Browse files
committed
[FAB-8024] Apply correct timeout option
Change-Id: Ic75ef03c8f72cc125669ed79b6aed9a5ee95f62c Signed-off-by: Divyank Katira <Divyank.Katira@securekey.com>
1 parent 10947da commit 3c5f08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/fabric-txn/chclient/chclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (cc *ChannelClient) InvokeHandler(handler chclient.Handler, request chclien
9595
select {
9696
case <-complete:
9797
return requestContext.Response, requestContext.Error
98-
case <-time.After(txnOpts.Timeout):
98+
case <-time.After(requestContext.Opts.Timeout):
9999
return chclient.Response{}, status.New(status.ClientStatus, status.Timeout.ToInt32(),
100100
"Operation timed out", nil)
101101
}

0 commit comments

Comments
 (0)