Skip to content

Commit 9675b81

Browse files
Post rebase
1 parent 866dcb3 commit 9675b81

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

src/restate_context_impl.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,9 @@ export class RestateGrpcContextImpl implements RestateGrpcContext {
379379
);
380380

381381
return {
382-
id: AWAKEABLE_IDENTIFIER_PREFIX + Buffer.concat([this.id, encodedEntryIndex]).toString("base64url"),
382+
id:
383+
AWAKEABLE_IDENTIFIER_PREFIX +
384+
Buffer.concat([this.id, encodedEntryIndex]).toString("base64url"),
383385
promise: this.markCombineablePromise(promise),
384386
};
385387
}

src/state_machine.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ export class StateMachine<I, O> implements RestateStreamConsumer {
252252
);
253253
}
254254

255-
rlog.debugJournalMessage(
256-
this.invocation.logPrefix,
255+
this.console.debugJournalMessage(
257256
"Matched and replayed message from journal",
258257
COMBINATOR_ENTRY_MESSAGE,
259258
combinatorMessage
@@ -271,8 +270,7 @@ export class StateMachine<I, O> implements RestateStreamConsumer {
271270
combinatorId,
272271
journalEntriesOrder: order.map((pid) => pid.id),
273272
};
274-
rlog.debugJournalMessage(
275-
this.invocation.logPrefix,
273+
this.console.debugJournalMessage(
276274
"Adding message to journal and sending to Restate",
277275
COMBINATOR_ENTRY_MESSAGE,
278276
combinatorMessage

test/protoutils.ts

+7-4
Original file line numberDiff line numberDiff line change
@@ -503,10 +503,13 @@ export function getAwakeableId(entryIndex: number): string {
503503
const encodedEntryIndex = Buffer.alloc(4 /* Size of u32 */);
504504
encodedEntryIndex.writeUInt32BE(entryIndex);
505505

506-
return AWAKEABLE_IDENTIFIER_PREFIX + Buffer.concat([
507-
Buffer.from("f311f1fdcb9863f0018bd3400ecd7d69b547204e776218b2", "hex"),
508-
encodedEntryIndex,
509-
]).toString("base64url");
506+
return (
507+
AWAKEABLE_IDENTIFIER_PREFIX +
508+
Buffer.concat([
509+
Buffer.from("f311f1fdcb9863f0018bd3400ecd7d69b547204e776218b2", "hex"),
510+
encodedEntryIndex,
511+
]).toString("base64url")
512+
);
510513
}
511514

512515
export function keyVal(key: string, value: any): Buffer[] {

0 commit comments

Comments
 (0)