*Change all_cache to allCache

This commit is contained in:
Derrick Hammer 2022-11-23 21:23:29 -05:00
parent 4f93d23b68
commit 627736ea1a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ export default class DHTCache extends EventEmitter {
return [...this._cache].sort();
}
public get all_cache(): string[] {
public get allCache(): string[] {
const items = [];
for (const id of this.graph.nodesIter()) {
const item = this.graph.node.get(id);

View File

@ -54,8 +54,8 @@ test("Basic presence test / data propagation", (t) => {
setTimeout(() => {
t.pass("Seeing everyone online");
t.equals(true, p2.all_cache.includes(peerData1[0]));
t.equals(true, p1.all_cache.includes(peerData2[0]));
t.equals(true, p2.allCache.includes(peerData1[0]));
t.equals(true, p1.allCache.includes(peerData2[0]));
hasFinished = true;
peer2._allConnections.get(peer1.keyPair.publicKey).end();