Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
koyopro committed Dec 9, 2024
1 parent 48af6c2 commit bdc3dc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/accel-record-core/src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ export const initAccelRecord = async (config: Config) => {
if (_config.type == "postgresql") _config.type = "pg";

if (canSyncActions()) {
_rpcClient = await import("./synclib/worker.js");
_rpcClient ||= await import("./synclib/worker.js");
_rpcClient.actions.stopWorker();
_rpcClient.actions.init({ knexConfig: getKnexConfig(config) });
} else {
_rpcClient = SyncRpc(path.resolve(__dirname, "./worker.cjs"), {
Expand Down

0 comments on commit bdc3dc3

Please sign in to comment.