Skip to content

Commit

Permalink
[3.x] Replace deprecated session.writeTransaction on session.executeW…
Browse files Browse the repository at this point in the history
…rite in Neo4jHealthCheck (helidon-io#8405)
  • Loading branch information
Captain1653 authored Feb 22, 2024
1 parent 7f3024d commit 1277e61
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, 2023 Oracle and/or its affiliates.
* Copyright (c) 2021, 2024 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -67,7 +67,7 @@ private HealthCheckResponse runHealthCheckQuery(HealthCheckResponseBuilder build

try (Session session = this.driver.session()) {

return session.writeTransaction(tx -> {
return session.executeWrite(tx -> {
var result = tx.run(CYPHER);

var edition = result.single().get("edition").asString();
Expand Down

0 comments on commit 1277e61

Please sign in to comment.