Skip to content

Commit

Permalink
Use deno kv actors from url
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <[email protected]>
  • Loading branch information
mcandeia committed Sep 25, 2024
1 parent 1e62955 commit 2a75f7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/actors/storage/denoKv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export interface StorageOptions {
atomicOp?: AtomicOp;
}

const kv = await Deno.openKv(join(Deno.cwd(), "kv"));
const ACTORS_KV_DATABASE = Deno.env.get("ACTORS_KV_DATABASE") ??
join(Deno.cwd(), "kv");
const kv = await Deno.openKv(ACTORS_KV_DATABASE);

interface AtomicOp {
kv: Deno.AtomicOperation;
Expand Down

0 comments on commit 2a75f7a

Please sign in to comment.