Skip to content

Commit

Permalink
Merge pull request #1318 from manitgupta:spanner-rpcPriority
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 605338064
  • Loading branch information
cloud-teleport committed Feb 8, 2024
2 parents 3be6f52 + eb6f02c commit c7cb59f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ public void processElement(ProcessContext c) {
// Start transaction
spannerAccessor
.getDatabaseClient()
.readWriteTransaction(Options.tag(getTxnTag(c.getPipelineOptions())))
.readWriteTransaction(
Options.tag(getTxnTag(c.getPipelineOptions())),
Options.priority(spannerConfig.getRpcPriority().get()))
.run(
(TransactionCallable<Void>)
transaction -> {
Expand Down

0 comments on commit c7cb59f

Please sign in to comment.