Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename internal fields #160

Merged
merged 2 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/amqp/lib/AbstractAmqpConsumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export abstract class AbstractAmqpConsumer<
>
private readonly maxRetryDuration: number

private readonly messageSchemaContainer: MessageSchemaContainer<MessagePayloadType>
public readonly _messageSchemaContainer: MessageSchemaContainer<MessagePayloadType>
private readonly handlerContainer: HandlerContainer<
MessagePayloadType,
ExecutionContext,
Expand Down Expand Up @@ -96,7 +96,7 @@ export abstract class AbstractAmqpConsumer<
? options.locatorConfig.queueName
: options.creationConfig!.queueName

this.messageSchemaContainer = this.resolveConsumerMessageSchemaContainer(options)
this._messageSchemaContainer = this.resolveConsumerMessageSchemaContainer(options)

this.handlerContainer = new HandlerContainer<
MessagePayloadType,
Expand Down Expand Up @@ -241,7 +241,7 @@ export abstract class AbstractAmqpConsumer<
}

protected override resolveSchema(message: MessagePayloadType) {
return this.messageSchemaContainer.resolveSchema(message)
return this._messageSchemaContainer.resolveSchema(message)
}

protected override resolveMessageLog(message: MessagePayloadType, messageType: string): unknown {
Expand Down
2 changes: 1 addition & 1 deletion packages/sns/lib/sns/AbstractSnsSqsConsumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,6 @@ export abstract class AbstractSnsSqsConsumer<
}

protected override resolveSchema(messagePayload: MessagePayloadSchemas) {
return this.messageSchemaContainer.resolveSchema(messagePayload)
return this._messageSchemaContainer.resolveSchema(messagePayload)
}
}
6 changes: 3 additions & 3 deletions packages/sqs/lib/sqs/AbstractSqsConsumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export abstract class AbstractSqsConsumer<
protected readonly errorResolver: ErrorResolver
protected readonly executionContext: ExecutionContext

public readonly messageSchemaContainer: MessageSchemaContainer<MessagePayloadType>
public readonly _messageSchemaContainer: MessageSchemaContainer<MessagePayloadType>

protected constructor(
dependencies: SQSConsumerDependencies,
Expand All @@ -128,7 +128,7 @@ export abstract class AbstractSqsConsumer<
this.maxRetryDuration = options.maxRetryDuration ?? DEFAULT_MAX_RETRY_DURATION
this.executionContext = executionContext

this.messageSchemaContainer = this.resolveConsumerMessageSchemaContainer(options)
this._messageSchemaContainer = this.resolveConsumerMessageSchemaContainer(options)
this.handlerContainer = new HandlerContainer<
MessagePayloadType,
ExecutionContext,
Expand Down Expand Up @@ -316,7 +316,7 @@ export abstract class AbstractSqsConsumer<
}

protected override resolveSchema(message: MessagePayloadType) {
return this.messageSchemaContainer.resolveSchema(message)
return this._messageSchemaContainer.resolveSchema(message)
}

// eslint-disable-next-line max-params
Expand Down
Loading