Skip to content

Commit

Permalink
fix warning resource not closed
Browse files Browse the repository at this point in the history
  • Loading branch information
lxb1111 committed Nov 29, 2021
1 parent 03fb380 commit b79e226
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1338,10 +1338,9 @@ private Txs getOrNewTransaction() {
SysTransaction sysTransaction = null;
GraphTransaction graphTransaction = null;
try {
StandardHugeGraph hugeGraph = StandardHugeGraph.this;
schemaTransaction = hugeGraph.openSchemaTransaction();
sysTransaction = hugeGraph.openSystemTransaction();
graphTransaction = hugeGraph.openGraphTransaction();
schemaTransaction = openSchemaTransaction();
sysTransaction = openSystemTransaction();
graphTransaction = openGraphTransaction();
txs = new Txs(schemaTransaction, sysTransaction,
graphTransaction);
} catch (Throwable e) {
Expand Down

0 comments on commit b79e226

Please sign in to comment.