mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
refactor: Load LRU first.
This commit is contained in:
parent
93366f0b8c
commit
113d954b42
@ -84,7 +84,7 @@ const defaultPath = './keystore'
|
||||
* @return {KeyStore} An instance of KeyStore.
|
||||
*/
|
||||
const KeyStore = async ({ storage, path } = {}) => {
|
||||
storage = storage || await ComposedStorage(await LevelStorage({ path: path || defaultPath }), await LRUStorage({ size: 1000 }))
|
||||
storage = storage || await ComposedStorage(await LRUStorage({ size: 1000 }), await LevelStorage({ path: path || defaultPath }))
|
||||
|
||||
const close = async () => {
|
||||
await storage.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user