Skip to content

Commit fece850

Browse files
committed
chore: remove setEnvVarsService method from BasePersistenceLayer
1 parent 2f385e8 commit fece850

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Diff for: packages/idempotency/src/persistence/BasePersistenceLayer.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abstract class BasePersistenceLayer implements BasePersistenceLayerInterface {
2626
private validationKeyJmesPath?: string;
2727

2828
public constructor() {
29-
this.setEnvVarsService();
29+
this.envVarsService = new EnvironmentVariablesService();
3030
this.idempotencyKeyPrefix = this.getEnvVarsService().getFunctionName();
3131
}
3232

@@ -223,14 +223,6 @@ abstract class BasePersistenceLayer implements BasePersistenceLayerInterface {
223223
return !data;
224224
}
225225

226-
/**
227-
* Setter and initializer for `envVarsService`.
228-
* Used internally during initialization.
229-
*/
230-
private setEnvVarsService(): void {
231-
this.envVarsService = new EnvironmentVariablesService();
232-
}
233-
234226
private validatePayload(data: Record<string, unknown>, record: IdempotencyRecord): void {
235227
if (this.payloadValidationEnabled) {
236228
const hashedPayload: string = this.getHashedPayload(data);

0 commit comments

Comments
 (0)