Skip to content

Commit

Permalink
chore: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Dec 10, 2024
1 parent cfda3d5 commit 949db54
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
32 changes: 18 additions & 14 deletions libs/checkpoint/src/memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,15 @@ export class MemorySaver extends BaseCheckpointSaver {
pending_sends,
};
const pendingWrites: CheckpointPendingWrite[] = await Promise.all(
Object.values(this.writes[key] || {}).map(async ([taskId, channel, value]) => {
return [
taskId,
channel,
await this.serde.loadsTyped("json", value),
];
})
Object.values(this.writes[key] || {}).map(
async ([taskId, channel, value]) => {
return [
taskId,
channel,
await this.serde.loadsTyped("json", value),
];
}
)
);
const checkpointTuple: CheckpointTuple = {
config,
Expand Down Expand Up @@ -126,13 +128,15 @@ export class MemorySaver extends BaseCheckpointSaver {
pending_sends,
};
const pendingWrites: CheckpointPendingWrite[] = await Promise.all(
Object.values(this.writes[key] || {}).map(async ([taskId, channel, value]) => {
return [
taskId,
channel,
await this.serde.loadsTyped("json", value),
];
})
Object.values(this.writes[key] || {}).map(
async ([taskId, channel, value]) => {
return [
taskId,
channel,
await this.serde.loadsTyped("json", value),
];
}
)
);
const checkpointTuple: CheckpointTuple = {
config: {
Expand Down
6 changes: 4 additions & 2 deletions libs/langgraph/src/tests/pregel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9188,7 +9188,7 @@ export function runPregelTests(
});
});

it.only("can throw a node interrupt multiple times in a single node", async () => {
it("can throw a node interrupt multiple times in a single node", async () => {
const GraphAnnotation = Annotation.Root({
myKey: Annotation<string>({
reducer: (a, b) => a + b,
Expand Down Expand Up @@ -9251,7 +9251,9 @@ export function runPregelTests(
config
)
);
expect(thirdResult[thirdResult.length - 1].myKey).toEqual("DEanswer 1 answer 2");
expect(thirdResult[thirdResult.length - 1].myKey).toEqual(
"DEanswer 1 answer 2"
);
const thirdState = await graph.getState(config);
expect(thirdState.tasks).toHaveLength(0);
});
Expand Down

0 comments on commit 949db54

Please sign in to comment.