Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
skyrpex committed Dec 11, 2023
1 parent 757031f commit 308b774
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions dynamodb-table/lib.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ const processRecords = async (endpoint, tableName, handler) => {
} else if (error.name === "TrimmedDataAccessException") {
// Ignore. This error seems to be a bug in DynamoDB Local.
// The desired behavior is to retry processing the records.
} else if (error.name === "ExpiredIteratorException") {
// Ignore. This error happens after the computer wakes up from sleep.
} else {
throw error;
}
Expand Down
5 changes: 1 addition & 4 deletions dynamodb-table/lib.w
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ class Host {
let uid = "DynamodbHost-7JOQ92VWh6OavMXYpWx9O";
let root = std.Node.of(scope).root;
let rootNode = std.Node.of(root);
// return unsafeCast(rootNode.tryFindChild(uid)) ?? new Host() as uid in root;
let def = unsafeCast(rootNode.tryFindChild("Default"));
let defNode = std.Node.of(def);
return unsafeCast(defNode.tryFindChild(uid)) ?? new Host() as uid in def;
return unsafeCast(rootNode.tryFindChild(uid)) ?? new Host() as uid in root;
}
}

Expand Down

0 comments on commit 308b774

Please sign in to comment.