Skip to content

Commit

Permalink
Remove hard-coded value for transaction timeout (#251)
Browse files Browse the repository at this point in the history
## Usage and product changes
Removes a hard-coded value for transaction timeout, which prevented the user's setting from taking effect.

## Implementation
Removes a hard-coded value for transaction timeout, which prevented the user's setting from taking effect.
  • Loading branch information
krishnangovindraj authored Jun 14, 2024
1 parent 7f1d511 commit 7bd5b33
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions TypeDBConsole.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public class TypeDBConsole {
private static final Logger LOG = LoggerFactory.getLogger(TypeDBConsole.class);

private static final Duration PASSWORD_EXPIRY_WARN = Duration.ofDays(7);
private static final int ONE_HOUR_IN_MILLIS = 60 * 60 * 1000;

private final Printer printer;
private ExecutorService executorService;
Expand Down Expand Up @@ -338,7 +337,6 @@ private boolean transactionREPL(TypeDBDriver driver, boolean isCloud, String dat
if (isCloud && options.readAnyReplica().isPresent() && options.readAnyReplica().get()) {
promptBuilder.append("[any-replica]");
}
options.transactionTimeoutMillis(ONE_HOUR_IN_MILLIS);
try (TypeDBSession session = driver.session(database, sessionType, options);
TypeDBTransaction tx = session.transaction(transactionType, options)) {
hasUncommittedChanges = false;
Expand Down

0 comments on commit 7bd5b33

Please sign in to comment.