Skip to content

Commit

Permalink
rename conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlymatthew committed May 29, 2024
1 parent 6866b95 commit 51f43e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/btree/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class BTreeNode {
return this.internalPointers.length + this.leafPointers.length;
}

async readChildNode(index: number) {
async child(index: number) {
const childPointer = this.pointer(index);

const { node, bytesRead } = await BTreeNode.fromMemoryPointer(
Expand Down
2 changes: 1 addition & 1 deletion src/btree/traversal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class TraversalIterator {
return false;
}
// propagate the rollover
this.records[i].node = await this.records[i + 1].node.readChildNode(
this.records[i].node = await this.records[i + 1].node.child(
this.records[i + 1].index,
);

Expand Down

0 comments on commit 51f43e7

Please sign in to comment.