Skip to content

Commit ce46eea

Browse files
authored
Transaction Sample update (#944)
1. An example that shows queue add w/ transactions should actually use the transaction.
1 parent 592b8b3 commit ce46eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appengine-java8/datastore/src/test/java/com/example/appengine/TransactionsTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public void transactionalTaskEnqueuing() throws Exception {
298298
Transaction txn = datastore.beginTransaction();
299299
// ...
300300

301-
queue.add(TaskOptions.Builder.withUrl("/path/to/handler"));
301+
queue.add(txn, TaskOptions.Builder.withUrl("/path/to/handler"));
302302

303303
// ...
304304

0 commit comments

Comments
 (0)