Skip to content

Commit

Permalink
fix(connector-fabric): chain code deployment fails >1 scp concurrency
Browse files Browse the repository at this point in the history
Fixes #1570

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Nov 28, 2021
1 parent b33aa90 commit 71c9063
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export class PluginLedgerConnectorFabric
}

log.debug(`SCP from/to %o => %o`, tmpDirPath, remoteDirPath);
await ssh.putDirectory(tmpDirPath, remoteDirPath);
await ssh.putDirectory(tmpDirPath, remoteDirPath, { concurrency: 1 });
log.debug(`SCP OK %o`, remoteDirPath);

if (ccLang === ChainCodeProgrammingLanguage.Golang) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ export class FabricTestLedgerV1 implements ITestLedger {
log.debug(`SCP OK %o`, remoteDirPath);

log.debug(`SCP from/to %o => %o`, tmpDirPath, remoteDirPath);
await ssh.putDirectory(tmpDirPath, remoteDirPath);
await ssh.putDirectory(tmpDirPath, remoteDirPath, { concurrency: 1 });
log.debug(`SCP OK %o`, remoteDirPath);

log.debug(`Initializing docker commands`);
Expand Down

0 comments on commit 71c9063

Please sign in to comment.