Skip to content

Commit

Permalink
default fabconnect calls to async
Browse files Browse the repository at this point in the history
The fabconnect default for /transactions is synchronous. The fabric
plugin currently expects async responses, so adding the `x-firefly-sync`
header.

Signed-off-by: Alex Shorsher <alex.shorsher@kaleido.io>
  • Loading branch information
shorsher committed May 27, 2022
1 parent 6d5ce1b commit 29bf253
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/blockchain/fabric/fabric.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ func (f *Fabric) invokeContractMethod(ctx context.Context, channel, chaincode, m
res, err := f.client.R().
SetContext(ctx).
SetBody(in).
SetHeader("x-firefly-sync", "false").
SetError(&resErr).
Post("/transactions")
if err != nil || !res.IsSuccess() {
Expand Down

0 comments on commit 29bf253

Please sign in to comment.