Skip to content

Commit 82f30b1

Browse files
committed
chore: fix lint errors
1 parent 517dc37 commit 82f30b1

File tree

2 files changed

+1
-14
lines changed
  • docs/src/content/docs/flow-control
  • packages/middlewares/flow-control/reducer/src/impl/conditional-strategy/lambdas/evaluation

2 files changed

+1
-14
lines changed

docs/src/content/docs/flow-control/reducer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ The static counter strategy reduces all events belonging to the same `chainId`,
105105

106106
This strategy is a good fit when you know the exact number of documents that you expect to be reduced.
107107

108-
For example, let's say that you want to translate a document in french, english, and spanish using the [Translate Text Processor](/project-lakechain/text-processing/translate-text-processor), and reduce the translated documents back together to zip them. In this case, you know that you will be expecting exaxtly 3 documents associated with the translated languages.
108+
For example, let's say that you want to translate a document in french, english, and spanish using the [Translate Text Processor](/project-lakechain/text-processing/translate-text-processor), and reduce the translated documents back together to zip them. In this case, you know that you will be expecting exactly 3 documents associated with the translated languages.
109109

110110
##### Unmatched Events
111111

packages/middlewares/flow-control/reducer/src/impl/conditional-strategy/lambdas/evaluation/index.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { evaluate } from './evaluate';
2323
import {
2424
DynamoDBClient,
2525
QueryCommand,
26-
PutItemCommand,
2726
UpdateItemCommand
2827
} from '@aws-sdk/client-dynamodb';
2928

@@ -40,18 +39,6 @@ const dynamoDb = tracer.captureAWSv3Client(new DynamoDBClient({
4039
maxAttempts: 3
4140
}));
4241

43-
/**
44-
* This method computes the time-to-live value for events stored in DynamoDB.
45-
* The purpose is to ensure that elements within the table are automatically
46-
* deleted after a certain amount of time.
47-
* @returns a time-to-live value for events stored in DynamoDB.
48-
* @default 48 hours.
49-
*/
50-
const getTtl = () => {
51-
const SECONDS_IN_AN_HOUR = 60 * 60;
52-
return (Math.round(Date.now() / 1000) + (48 * SECONDS_IN_AN_HOUR));
53-
};
54-
5542
/**
5643
* The lambda class definition containing the lambda handler.
5744
* @note using a `LambdaInterface` is required in

0 commit comments

Comments
 (0)