Skip to content

Commit

Permalink
Replace deprecated session.writeTransaction on session.executeWrite i…
Browse files Browse the repository at this point in the history
…n Neo4jHealthCheck (#8397)
  • Loading branch information
Captain1653 authored Feb 21, 2024
1 parent 2bba091 commit c79dff3
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) 2023 Oracle and/or its affiliates.
* Copyright (c) 2023, 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 @@ -61,7 +61,7 @@ public String name() {
public HealthCheckResponse call() {
HealthCheckResponse.Builder builder = HealthCheckResponse.builder();
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 c79dff3

Please sign in to comment.