diff --git a/src/blockstore/store.ts b/src/blockstore/store.ts index a679788d..60ae1c1d 100644 --- a/src/blockstore/store.ts +++ b/src/blockstore/store.ts @@ -478,7 +478,7 @@ export class WALStoreImpl extends BaseStoreImpl implements WALStore { async load(): Promise { 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(); } @@ -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(); }