Skip to content

Commit

Permalink
rename main to wal for walfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jchris committed Sep 12, 2024
1 parent c3534ad commit 33201b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blockstore/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ export class WALStoreImpl extends BaseStoreImpl implements WALStore {

async load(): Promise<WALState | Falsy> {
this.logger.Debug().Msg("loading");
const filepath = await this.gateway.buildUrl(this.url(), "main");
const filepath = await this.gateway.buildUrl(this.url(), "wal");
if (filepath.isErr()) {
throw this.logger.Error().Err(filepath.Err()).Url(this.url()).Msg("error building url").AsError();
}
Expand All @@ -497,7 +497,7 @@ export class WALStoreImpl extends BaseStoreImpl implements WALStore {
}

async save(state: WALState) {
const filepath = await this.gateway.buildUrl(this.url(), "main");
const filepath = await this.gateway.buildUrl(this.url(), "wal");
if (filepath.isErr()) {
throw this.logger.Error().Err(filepath.Err()).Url(this.url()).Msg("error building url").AsError();
}
Expand Down

0 comments on commit 33201b4

Please sign in to comment.