Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

fix: entry page and key page usage #768

Merged
merged 2 commits into from
Mar 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fluent/StorageRune.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class StorageRune<
blockHash?: string,
]>
) {
const storageKey = this.$key.encoded(partialKey).map(hex.encode)
const storageKey = this.$partialKey.encoded(partialKey).map(hex.encode)
const startKey = Rune.captureUnhandled(
[this.$key, start],
(codec, start) =>
Expand Down
4 changes: 2 additions & 2 deletions rpc/ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export class WsConnection extends Connection {
super()
this.ws = new WebSocket(url)
this.ws.addEventListener("message", (e) => this.handle(JSON.parse(e.data)))
this.ws.addEventListener("error", (e) => { // TODO: recovery
this.ws.addEventListener("error", (e) => {
console.log(e)
Deno.exit(1)
throw new Error("TODO: more graceful error messaging / recovery")
})
}

Expand Down