Skip to content

Commit

Permalink
back to fs kv
Browse files Browse the repository at this point in the history
  • Loading branch information
barnesoir committed Oct 30, 2024
1 parent 7ea904f commit ee8d941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import {
} from "./lib/api_schema.ts";
import type { Command, Event } from "./lib/api.ts";

// Open the key-value store: running in-memory
const kv = await Deno.openKv(":memory:");
// Open the key-value store
const kv = await Deno.openKv("./db.sqlite3");

// Listen to events from kv queue and apply them to the materialized view
// retry policy can specified on kv.enqueue method (optionally enabled in the DenoEventRepository)
Expand Down

1 comment on commit ee8d941

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on ee8d941 Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

UNCAUGHT_EXCEPTION

TypeError: Non-default databases are not supported
    at Object.openKv (ext:deno_kv/01_db.ts:10:21)
    at file:///src/server.ts:28:23

Please sign in to comment.