diff --git a/src/system.ts b/src/system.ts index 2455e14..fbf44ec 100644 --- a/src/system.ts +++ b/src/system.ts @@ -15,17 +15,21 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -import { ANT, ANTRecord, AoIORead, IO, ProcessId, isLeasedArNSRecord } from '@ar.io/sdk/node'; +import { + ANT, + ANTRecord, + AoIORead, + IO, + ProcessId, + isLeasedArNSRecord, +} from '@ar.io/sdk/node'; import pLimit from 'p-limit'; - - import { LmdbKVStore } from './cache/lmdb-kv-store.js'; import * as config from './config.js'; import log from './log.js'; import { ArNSResolvedData } from './types.js'; - let lastEvaluationTimestamp: number | undefined; let evaluationInProgress = false; export const getLastEvaluatedTimestamp = () => lastEvaluationTimestamp; @@ -200,7 +204,6 @@ export async function evaluateArNSNames() { return; } - // Exception Handlers process.on('uncaughtException', (error: any) => {