Skip to content

Commit 713a5c6

Browse files
author
Zhen Li
committed
Should only call cancel to mark the state rather than calling the summary for a promise.
1 parent 14f073d commit 713a5c6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/transaction.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ function finishTransaction (
385385
const observerPromise = connectionHolder
386386
.getConnection()
387387
.then(connection => {
388-
pendingResults.forEach(r => r.summary())
388+
pendingResults.forEach(r => r._cancel())
389389
return Promise.all(pendingResults).then(results => {
390390
if (commit) {
391391
return connection.protocol().commitTransaction({

test/resources/boltstub/v3/write_tx_not_a_leader.script

-2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,3 @@ C: BEGIN {}
99
S: SUCCESS {}
1010
FAILURE {"code": "Neo.ClientError.Cluster.NotALeader", "message": "blabla"}
1111
IGNORED
12-
C: COMMIT
13-
S: IGNORED

0 commit comments

Comments
 (0)