@remit/queue-sidecar 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/store.test.ts +0 -1
- package/src/store.ts +2 -5
package/package.json
CHANGED
package/src/store.test.ts
CHANGED
package/src/store.ts
CHANGED
|
@@ -53,8 +53,6 @@ const releaseRedrive = sqliteTable("release_redrive", {
|
|
|
53
53
|
release: text("release").notNull(),
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
const schema = { queues, messages, dedup, releaseRedrive };
|
|
57
|
-
|
|
58
56
|
export interface QueueDefinition {
|
|
59
57
|
readonly name: string;
|
|
60
58
|
readonly fifo: boolean;
|
|
@@ -130,8 +128,8 @@ const toQueueRecord = (row: QueueRow): QueueRecord => ({
|
|
|
130
128
|
* here so the behaviour is testable without a running HTTP server.
|
|
131
129
|
*/
|
|
132
130
|
export class QueueStore {
|
|
133
|
-
private readonly handle: SqliteHandle
|
|
134
|
-
private readonly db: SqliteHandle
|
|
131
|
+
private readonly handle: SqliteHandle;
|
|
132
|
+
private readonly db: SqliteHandle["db"];
|
|
135
133
|
private sequenceCounter: bigint;
|
|
136
134
|
private readonly startedAt = Date.now();
|
|
137
135
|
private readonly lastReceiveAt = new Map<string, number>();
|
|
@@ -146,7 +144,6 @@ export class QueueStore {
|
|
|
146
144
|
filename,
|
|
147
145
|
mode: "create",
|
|
148
146
|
synchronous: "FULL",
|
|
149
|
-
schema,
|
|
150
147
|
});
|
|
151
148
|
this.db = this.handle.db;
|
|
152
149
|
this.migrate();
|