@milaboratories/pl-middle-layer 2.9.0 → 2.10.0
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/dist/index.cjs +4 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/middle_layer/build_stamp.cjs +1 -1
- package/dist/middle_layer/build_stamp.js +1 -1
- package/dist/middle_layer/index.cjs +4 -0
- package/dist/middle_layer/index.d.ts +2 -1
- package/dist/middle_layer/index.js +2 -1
- package/dist/middle_layer/middle_layer.cjs +96 -28
- package/dist/middle_layer/middle_layer.cjs.map +1 -1
- package/dist/middle_layer/middle_layer.d.ts +54 -8
- package/dist/middle_layer/middle_layer.d.ts.map +1 -1
- package/dist/middle_layer/middle_layer.js +96 -28
- package/dist/middle_layer/middle_layer.js.map +1 -1
- package/dist/middle_layer/project.cjs +39 -17
- package/dist/middle_layer/project.cjs.map +1 -1
- package/dist/middle_layer/project.d.ts +17 -2
- package/dist/middle_layer/project.d.ts.map +1 -1
- package/dist/middle_layer/project.js +39 -17
- package/dist/middle_layer/project.js.map +1 -1
- package/dist/middle_layer/project_holds.cjs +266 -0
- package/dist/middle_layer/project_holds.cjs.map +1 -0
- package/dist/middle_layer/project_holds.d.ts +50 -0
- package/dist/middle_layer/project_holds.d.ts.map +1 -0
- package/dist/middle_layer/project_holds.js +262 -0
- package/dist/middle_layer/project_holds.js.map +1 -0
- package/package.json +7 -7
- package/src/middle_layer/index.ts +2 -0
- package/src/middle_layer/middle_layer.ts +117 -38
- package/src/middle_layer/project.ts +40 -15
- package/src/middle_layer/project_close_during_write.test.ts +142 -0
- package/src/middle_layer/project_handles.test.ts +168 -0
- package/src/middle_layer/project_holds.ts +359 -0
- package/src/middle_layer/project_slots.test.ts +331 -0
- package/src/test/write_tx_hooks.ts +75 -0
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { describe, expect, test } from "vitest";
|
|
2
|
+
import type { ProjectId } from "../model/project_model";
|
|
3
|
+
import type { SlotProject } from "./project_holds";
|
|
4
|
+
import {
|
|
5
|
+
asProjectHolder,
|
|
6
|
+
isProjectInUseError,
|
|
7
|
+
ProjectInUseError,
|
|
8
|
+
ProjectSlots,
|
|
9
|
+
} from "./project_holds";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The hold bookkeeping of {@link ProjectSlots} on projects that are plain objects, so every
|
|
13
|
+
* interleaving is set up exactly. What a real project does under it is covered against a backend
|
|
14
|
+
* in `project_handles.test.ts`.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const ID = "p1" as ProjectId;
|
|
18
|
+
|
|
19
|
+
class FakeProject implements SlotProject {
|
|
20
|
+
destroyed = false;
|
|
21
|
+
snapshots = 0;
|
|
22
|
+
constructor(readonly serial: number) {}
|
|
23
|
+
async destroy(): Promise<void> {
|
|
24
|
+
await Promise.resolve();
|
|
25
|
+
this.destroyed = true;
|
|
26
|
+
}
|
|
27
|
+
snapshotOnClose(): Promise<void> {
|
|
28
|
+
this.snapshots++;
|
|
29
|
+
return Promise.resolve();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
type Deferred<T> = { promise: Promise<T>; resolve: (v: T) => void; reject: (e: Error) => void };
|
|
34
|
+
|
|
35
|
+
function deferred<T>(): Deferred<T> {
|
|
36
|
+
let resolve: (v: T) => void = () => {};
|
|
37
|
+
let reject: (e: Error) => void = () => {};
|
|
38
|
+
const promise = new Promise<T>((res, rej) => {
|
|
39
|
+
resolve = res;
|
|
40
|
+
reject = rej;
|
|
41
|
+
});
|
|
42
|
+
return { promise, resolve, reject };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** Slots whose loads finish when the test says so. */
|
|
46
|
+
function setup(
|
|
47
|
+
options: {
|
|
48
|
+
/** Runs at the end of a load, before it returns the project. */
|
|
49
|
+
beforeLoaded?: (project: FakeProject, onGone: (p: FakeProject) => void) => void;
|
|
50
|
+
} = {},
|
|
51
|
+
) {
|
|
52
|
+
const loads: Deferred<void>[] = [];
|
|
53
|
+
const projects: FakeProject[] = [];
|
|
54
|
+
const goneCallbacks: ((p: FakeProject) => void)[] = [];
|
|
55
|
+
const published: ProjectId[][] = [];
|
|
56
|
+
const slots = new ProjectSlots<FakeProject>({
|
|
57
|
+
load: async (_id, onGone) => {
|
|
58
|
+
const gate = deferred<void>();
|
|
59
|
+
loads.push(gate);
|
|
60
|
+
await gate.promise;
|
|
61
|
+
const project = new FakeProject(projects.length);
|
|
62
|
+
projects.push(project);
|
|
63
|
+
goneCallbacks.push(onGone);
|
|
64
|
+
options.beforeLoaded?.(project, onGone);
|
|
65
|
+
return project;
|
|
66
|
+
},
|
|
67
|
+
trackSnapshotWrite: () => {},
|
|
68
|
+
publish: (open) => published.push(open),
|
|
69
|
+
logger: { info: () => {}, warn: () => {} },
|
|
70
|
+
});
|
|
71
|
+
return { slots, loads, projects, goneCallbacks, published };
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** Opens the project with one hold per label. */
|
|
75
|
+
async function opened(s: ReturnType<typeof setup>, ...holders: string[]) {
|
|
76
|
+
const acquiring = Promise.all(holders.map((h) => s.slots.acquire(ID, asProjectHolder(h))));
|
|
77
|
+
await settle();
|
|
78
|
+
s.loads.at(-1)?.resolve();
|
|
79
|
+
return await acquiring;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** Lets every pending callback run. */
|
|
83
|
+
async function settle(): Promise<void> {
|
|
84
|
+
for (let i = 0; i < 10; i++) await Promise.resolve();
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
describe("ProjectSlots", () => {
|
|
88
|
+
test("concurrent acquires share one load and one project", async () => {
|
|
89
|
+
const { slots, loads, projects } = setup();
|
|
90
|
+
const acquires = [
|
|
91
|
+
slots.acquire(ID, asProjectHolder("a")),
|
|
92
|
+
slots.acquire(ID, asProjectHolder("b")),
|
|
93
|
+
slots.acquire(ID, asProjectHolder("c")),
|
|
94
|
+
];
|
|
95
|
+
await settle();
|
|
96
|
+
expect(loads).toHaveLength(1);
|
|
97
|
+
loads[0].resolve();
|
|
98
|
+
const handles = await Promise.all(acquires);
|
|
99
|
+
expect(projects).toHaveLength(1);
|
|
100
|
+
expect(new Set(handles.map((h) => h.project)).size).toBe(1);
|
|
101
|
+
expect(slots.holders(ID).sort()).toEqual(["a", "b", "c"]);
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
test("the project is destroyed only when the last hold is released", async () => {
|
|
105
|
+
const { slots, loads, projects, published } = setup();
|
|
106
|
+
const acquiring = Promise.all([
|
|
107
|
+
slots.acquire(ID, asProjectHolder("a")),
|
|
108
|
+
slots.acquire(ID, asProjectHolder("b")),
|
|
109
|
+
]);
|
|
110
|
+
await settle();
|
|
111
|
+
loads[0].resolve();
|
|
112
|
+
const [a, b] = await acquiring;
|
|
113
|
+
expect(published.at(-1)).toEqual([ID]);
|
|
114
|
+
|
|
115
|
+
await a.release();
|
|
116
|
+
expect(projects[0].destroyed).toBe(false);
|
|
117
|
+
expect(slots.get(ID)).toBe(projects[0]);
|
|
118
|
+
|
|
119
|
+
await b.release();
|
|
120
|
+
expect(projects[0].destroyed).toBe(true);
|
|
121
|
+
expect(projects[0].snapshots).toBe(1);
|
|
122
|
+
expect(slots.get(ID)).toBeUndefined();
|
|
123
|
+
expect(published.at(-1)).toEqual([]);
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
test("a second release does nothing, and an ended handle has no project", async () => {
|
|
127
|
+
const { slots, loads } = setup();
|
|
128
|
+
const acquiring = Promise.all([
|
|
129
|
+
slots.acquire(ID, asProjectHolder("a")),
|
|
130
|
+
slots.acquire(ID, asProjectHolder("b")),
|
|
131
|
+
]);
|
|
132
|
+
await settle();
|
|
133
|
+
loads[0].resolve();
|
|
134
|
+
const [a] = await acquiring;
|
|
135
|
+
await a.release();
|
|
136
|
+
await a.release();
|
|
137
|
+
expect(slots.holders(ID)).toEqual(["b"]);
|
|
138
|
+
expect(a.ended).toBe(true);
|
|
139
|
+
expect(a.signal.reason).toBe("released");
|
|
140
|
+
expect(() => a.project).toThrow(/has ended/);
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
test("an acquire right after the last release waits for the destroy and loads anew", async () => {
|
|
144
|
+
const { slots, loads, projects } = setup();
|
|
145
|
+
const first = slots.acquire(ID, asProjectHolder("a"));
|
|
146
|
+
await settle();
|
|
147
|
+
loads[0].resolve();
|
|
148
|
+
const a = await first;
|
|
149
|
+
const destroyed = a.release();
|
|
150
|
+
expect(slots.get(ID)).toBeUndefined();
|
|
151
|
+
const second = slots.acquire(ID, asProjectHolder("b"));
|
|
152
|
+
await destroyed;
|
|
153
|
+
await settle();
|
|
154
|
+
expect(projects[0].destroyed).toBe(true);
|
|
155
|
+
expect(loads).toHaveLength(2);
|
|
156
|
+
loads[1].resolve();
|
|
157
|
+
const b = await second;
|
|
158
|
+
expect(b.project).toBe(projects[1]);
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
test("a failed load rejects every waiter and leaves nothing behind", async () => {
|
|
162
|
+
const { slots, loads } = setup();
|
|
163
|
+
const acquires = [
|
|
164
|
+
slots.acquire(ID, asProjectHolder("a")),
|
|
165
|
+
slots.acquire(ID, asProjectHolder("b")),
|
|
166
|
+
];
|
|
167
|
+
await settle();
|
|
168
|
+
loads[0].reject(new Error("load failed"));
|
|
169
|
+
for (const acquire of acquires) await expect(acquire).rejects.toThrow("load failed");
|
|
170
|
+
expect(slots.holders(ID)).toEqual([]);
|
|
171
|
+
const again = slots.acquire(ID, asProjectHolder("c"));
|
|
172
|
+
await settle();
|
|
173
|
+
expect(loads).toHaveLength(2);
|
|
174
|
+
loads[1].resolve();
|
|
175
|
+
await again;
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
test("eviction ends every hold with its reason and destroys the project", async () => {
|
|
179
|
+
const { slots, loads, projects } = setup();
|
|
180
|
+
const acquiring = Promise.all([
|
|
181
|
+
slots.acquire(ID, asProjectHolder("a")),
|
|
182
|
+
slots.acquire(ID, asProjectHolder("b")),
|
|
183
|
+
]);
|
|
184
|
+
await settle();
|
|
185
|
+
loads[0].resolve();
|
|
186
|
+
const [a, b] = await acquiring;
|
|
187
|
+
await slots.evict(ID, "deleted");
|
|
188
|
+
expect(a.signal.reason).toBe("deleted");
|
|
189
|
+
expect(b.signal.reason).toBe("deleted");
|
|
190
|
+
expect(projects[0].destroyed).toBe(true);
|
|
191
|
+
// Nothing is written for a project that no longer exists.
|
|
192
|
+
expect(projects[0].snapshots).toBe(0);
|
|
193
|
+
await a.release();
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
test("eviction during the load rejects the waiters and destroys what the load produced", async () => {
|
|
197
|
+
const { slots, loads, projects } = setup();
|
|
198
|
+
const acquire = slots.acquire(ID, asProjectHolder("a"));
|
|
199
|
+
await settle();
|
|
200
|
+
const evicted = slots.evict(ID, "deleted");
|
|
201
|
+
loads[0].resolve();
|
|
202
|
+
await expect(acquire).rejects.toThrow(/not found/);
|
|
203
|
+
await evicted;
|
|
204
|
+
expect(projects[0].destroyed).toBe(true);
|
|
205
|
+
expect(slots.get(ID)).toBeUndefined();
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
test("the project's own report that it was deleted evicts it", async () => {
|
|
209
|
+
const { slots, loads, projects, goneCallbacks } = setup();
|
|
210
|
+
const acquire = slots.acquire(ID, asProjectHolder("a"));
|
|
211
|
+
await settle();
|
|
212
|
+
loads[0].resolve();
|
|
213
|
+
const a = await acquire;
|
|
214
|
+
goneCallbacks[0](projects[0]);
|
|
215
|
+
await settle();
|
|
216
|
+
expect(a.signal.reason).toBe("deleted");
|
|
217
|
+
expect(projects[0].destroyed).toBe(true);
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
test("a release while another acquire waits for the same load leaves the project loaded", async () => {
|
|
221
|
+
const { slots, loads, projects } = setup();
|
|
222
|
+
const first = slots.acquire(ID, asProjectHolder("a")).then(async (a) => {
|
|
223
|
+
await a.release();
|
|
224
|
+
return a;
|
|
225
|
+
});
|
|
226
|
+
const second = slots.acquire(ID, asProjectHolder("b"));
|
|
227
|
+
await settle();
|
|
228
|
+
loads[0].resolve();
|
|
229
|
+
const [a, b] = await Promise.all([first, second]);
|
|
230
|
+
expect(a.ended).toBe(true);
|
|
231
|
+
expect(b.ended).toBe(false);
|
|
232
|
+
expect(b.project).toBe(projects[0]);
|
|
233
|
+
expect(projects[0].destroyed).toBe(false);
|
|
234
|
+
expect(slots.holders(ID)).toEqual(["b"]);
|
|
235
|
+
await b.release();
|
|
236
|
+
expect(projects[0].destroyed).toBe(true);
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
test("the project's report that it was deleted, during its load, rejects the waiters", async () => {
|
|
240
|
+
const { slots, loads, projects } = setup({
|
|
241
|
+
beforeLoaded: (project, onGone) => onGone(project),
|
|
242
|
+
});
|
|
243
|
+
const acquires = [
|
|
244
|
+
slots.acquire(ID, asProjectHolder("a")),
|
|
245
|
+
slots.acquire(ID, asProjectHolder("b")),
|
|
246
|
+
];
|
|
247
|
+
await settle();
|
|
248
|
+
loads[0].resolve();
|
|
249
|
+
for (const acquire of acquires) await expect(acquire).rejects.toThrow(/not found/);
|
|
250
|
+
await settle();
|
|
251
|
+
expect(projects[0].destroyed).toBe(true);
|
|
252
|
+
expect(projects[0].snapshots).toBe(0);
|
|
253
|
+
expect(slots.get(ID)).toBeUndefined();
|
|
254
|
+
expect(slots.holders(ID)).toEqual([]);
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
test("a refused delete removes nothing and leaves the holds alone", async () => {
|
|
258
|
+
const s = setup();
|
|
259
|
+
const [tab] = await opened(s, "desktop");
|
|
260
|
+
let removed = false;
|
|
261
|
+
const refused = s.slots.delete(
|
|
262
|
+
ID,
|
|
263
|
+
async () => {
|
|
264
|
+
removed = true;
|
|
265
|
+
},
|
|
266
|
+
(holder) => holder !== "mcp:me",
|
|
267
|
+
);
|
|
268
|
+
await expect(refused).rejects.toBeInstanceOf(ProjectInUseError);
|
|
269
|
+
await expect(refused).rejects.toMatchObject({ holders: ["desktop"] });
|
|
270
|
+
expect(isProjectInUseError(await refused.catch((e: unknown) => e))).toBe(true);
|
|
271
|
+
expect(removed).toBe(false);
|
|
272
|
+
expect(tab.ended).toBe(false);
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
test("a delete is not refused by the holds it allows, and ends them with deleted", async () => {
|
|
276
|
+
const s = setup();
|
|
277
|
+
const [mine] = await opened(s, "mcp:me");
|
|
278
|
+
await s.slots.delete(
|
|
279
|
+
ID,
|
|
280
|
+
async () => {},
|
|
281
|
+
(holder) => holder !== "mcp:me",
|
|
282
|
+
);
|
|
283
|
+
expect(mine.signal.reason).toBe("deleted");
|
|
284
|
+
expect(s.projects[0].destroyed).toBe(true);
|
|
285
|
+
expect(s.projects[0].snapshots).toBe(0);
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
test("a delete whose write fails leaves the project and its holds as they were", async () => {
|
|
289
|
+
const s = setup();
|
|
290
|
+
const [held] = await opened(s, "a");
|
|
291
|
+
await expect(
|
|
292
|
+
s.slots.delete(ID, async () => {
|
|
293
|
+
throw new Error("write failed");
|
|
294
|
+
}),
|
|
295
|
+
).rejects.toThrow("write failed");
|
|
296
|
+
expect(held.ended).toBe(false);
|
|
297
|
+
expect(s.slots.get(ID)).toBe(s.projects[0]);
|
|
298
|
+
const second = await s.slots.acquire(ID, asProjectHolder("b"));
|
|
299
|
+
expect(second.project).toBe(s.projects[0]);
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
test("closeAll waits for a load in flight and destroys what it produced", async () => {
|
|
303
|
+
const { slots, loads, projects } = setup();
|
|
304
|
+
const acquire = slots.acquire(ID, asProjectHolder("a"));
|
|
305
|
+
acquire.catch(() => {});
|
|
306
|
+
await settle();
|
|
307
|
+
let closed = false;
|
|
308
|
+
const closing = slots.closeAll().then(() => {
|
|
309
|
+
closed = true;
|
|
310
|
+
});
|
|
311
|
+
await settle();
|
|
312
|
+
expect(closed).toBe(false);
|
|
313
|
+
|
|
314
|
+
loads[0].resolve();
|
|
315
|
+
await closing;
|
|
316
|
+
expect(projects[0].destroyed).toBe(true);
|
|
317
|
+
await expect(acquire).rejects.toThrow("Middle layer is closed");
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
test("after closeAll every hold has ended and acquires are refused", async () => {
|
|
321
|
+
const { slots, loads, projects } = setup();
|
|
322
|
+
const acquire = slots.acquire(ID, asProjectHolder("a"));
|
|
323
|
+
await settle();
|
|
324
|
+
loads[0].resolve();
|
|
325
|
+
const a = await acquire;
|
|
326
|
+
await slots.closeAll();
|
|
327
|
+
expect(a.signal.reason).toBe("closed");
|
|
328
|
+
expect(projects[0].destroyed).toBe(true);
|
|
329
|
+
await expect(slots.acquire(ID, asProjectHolder("b"))).rejects.toThrow("Middle layer is closed");
|
|
330
|
+
});
|
|
331
|
+
});
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { PlClient, PlTransaction } from "@milaboratories/pl-client";
|
|
2
|
+
|
|
3
|
+
type TxOptions = Parameters<PlClient["withWriteTx"]>[2];
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Wraps `pl.withWriteTx` so that `after` runs once a write transaction has returned, before its
|
|
7
|
+
* caller sees the result: for a project action, after the commit and before the action's own
|
|
8
|
+
* post-commit refresh. Returns the function that puts the original back.
|
|
9
|
+
*
|
|
10
|
+
* `after` gets the transaction name, e.g. `ProjectAction: addBlock`, and runs for every write
|
|
11
|
+
* transaction until restored; it is not run for the transactions it makes itself.
|
|
12
|
+
*/
|
|
13
|
+
export function afterWriteTx(pl: PlClient, after: (name: string) => Promise<void>): () => void {
|
|
14
|
+
const unwrapped = pl.withWriteTx;
|
|
15
|
+
const original = unwrapped.bind(pl);
|
|
16
|
+
let inHook = false;
|
|
17
|
+
pl.withWriteTx = async <T>(
|
|
18
|
+
name: string,
|
|
19
|
+
body: (tx: PlTransaction) => Promise<T>,
|
|
20
|
+
ops?: TxOptions,
|
|
21
|
+
): Promise<T> => {
|
|
22
|
+
const result = await original(name, body, ops);
|
|
23
|
+
if (!inHook) {
|
|
24
|
+
inHook = true;
|
|
25
|
+
try {
|
|
26
|
+
await after(name);
|
|
27
|
+
} finally {
|
|
28
|
+
inHook = false;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
return () => {
|
|
34
|
+
pl.withWriteTx = unwrapped;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** Runs `action` once, after the first write transaction named `name` returns. */
|
|
39
|
+
export function onceAfterWriteTx(
|
|
40
|
+
pl: PlClient,
|
|
41
|
+
name: string,
|
|
42
|
+
action: () => Promise<void>,
|
|
43
|
+
): { restore: () => void; fired: () => boolean } {
|
|
44
|
+
let fired = false;
|
|
45
|
+
const restore = afterWriteTx(pl, async (txName) => {
|
|
46
|
+
if (fired || txName !== name) return;
|
|
47
|
+
fired = true;
|
|
48
|
+
await action();
|
|
49
|
+
});
|
|
50
|
+
return { restore, fired: () => fired };
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** Counts the write transactions by name as they start, from now until restored. */
|
|
54
|
+
export function countWriteTx(pl: PlClient): {
|
|
55
|
+
count: (name: string) => number;
|
|
56
|
+
restore: () => void;
|
|
57
|
+
} {
|
|
58
|
+
const counts = new Map<string, number>();
|
|
59
|
+
const unwrapped = pl.withWriteTx;
|
|
60
|
+
const original = unwrapped.bind(pl);
|
|
61
|
+
pl.withWriteTx = async <T>(
|
|
62
|
+
name: string,
|
|
63
|
+
body: (tx: PlTransaction) => Promise<T>,
|
|
64
|
+
ops?: TxOptions,
|
|
65
|
+
): Promise<T> => {
|
|
66
|
+
counts.set(name, (counts.get(name) ?? 0) + 1);
|
|
67
|
+
return await original(name, body, ops);
|
|
68
|
+
};
|
|
69
|
+
return {
|
|
70
|
+
count: (name) => counts.get(name) ?? 0,
|
|
71
|
+
restore: () => {
|
|
72
|
+
pl.withWriteTx = unwrapped;
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
}
|