Skip to content

Commit 2f3a19d

Browse files
committed
fix: use existing envGet/CONFIG_PARAMS imports from HEAD, remove duplicates
1 parent a09afac commit 2f3a19d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

resources/RecordEncoder.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
*/
77

88
import { Encoder } from 'msgpackr';
9+
import { get as envGet } from '../utility/environment/environmentManager.js';
10+
import { CONFIG_PARAMS } from '../utility/hdbTerms.ts';
911
import {
1012
HAS_PREVIOUS_RESIDENCY_ID,
1113
HAS_CURRENT_RESIDENCY_ID,
@@ -29,8 +31,6 @@ import { getThisNodeId } from './nodeIdMapping.ts';
2931
import { recordAction } from './analytics/write.ts';
3032
import { RocksDatabase } from '@harperfast/rocksdb-js';
3133
import { when } from '../utility/when.ts';
32-
import { CONFIG_PARAMS } from '../utility/hdbTerms.ts';
33-
import * as envMngr from '../utility/environment/environmentManager.js';
3434
export type Entry = {
3535
key: any;
3636
value: any;
@@ -504,7 +504,7 @@ export function handleLocalTimeForGets(store, rootStore) {
504504
return store;
505505
}
506506
const trackedTxns: WeakRef<any>[] = [];
507-
const configValue = envMngr.get(CONFIG_PARAMS.STORAGE_MAX_READ_TRANSACTION_OPEN_TIME) ?? 300000;
507+
const configValue = envGet(CONFIG_PARAMS.STORAGE_MAX_READ_TRANSACTION_OPEN_TIME) ?? 300000;
508508
let READ_TXN_TIMEOUT_TICKS = Math.round(configValue / 15000);
509509
export function checkReadTxnTimeouts() {
510510
for (let i = 0; i < trackedTxns.length; i++) {

0 commit comments

Comments
 (0)