mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 05:12:35 +01:00
Apply suggestions from code review
Co-authored-by: wiz <j@wiz.biz>
This commit is contained in:
parent
584ef87fc8
commit
32290d1e0d
@ -6,7 +6,7 @@
|
||||
"SPAWN_CLUSTER_PROCS": 0,
|
||||
"API_URL_PREFIX": "/api/v1/",
|
||||
"POLL_RATE_MS": 2000,
|
||||
"CACHE_DIR": "./cache/"
|
||||
"CACHE_DIR": "./cache"
|
||||
},
|
||||
"CORE_RPC": {
|
||||
"HOST": "127.0.0.1",
|
||||
|
@ -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() { }
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user