Apply suggestions from code review

Co-authored-by: wiz <j@wiz.biz>
This commit is contained in:
softsimon
2021-02-14 20:03:45 +07:00
committed by GitHub
parent 584ef87fc8
commit 32290d1e0d
3 changed files with 4 additions and 4 deletions

View File

@@ -8,8 +8,8 @@ import config from '../config';
import { TransactionExtended } from '../mempool.interfaces';
class DiskCache {
private static FILE_NAME = config.MEMPOOL.CACHE_DIR + 'cache.json';
private static FILE_NAMES = config.MEMPOOL.CACHE_DIR + 'cache{number}.json';
private static FILE_NAME = config.MEMPOOL.CACHE_DIR + '/cache.json';
private static FILE_NAMES = config.MEMPOOL.CACHE_DIR + '/cache{number}.json';
private static CHUNK_FILES = 25;
constructor() { }

View File

@@ -61,7 +61,7 @@ const defaults: IConfig = {
'SPAWN_CLUSTER_PROCS': 0,
'API_URL_PREFIX': '/api/v1/',
'POLL_RATE_MS': 2000,
'CACHE_DIR': './cache/'
'CACHE_DIR': './cache'
},
'ESPLORA': {
'REST_API_URL': 'http://127.0.0.1:3000',