Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pavelpatrin
Copy link
Collaborator

Internal names refinement.

Signed-off-by: Pavel Patrin <[email protected]>
@pavelpatrin pavelpatrin requested a review from Copilot June 10, 2025 12:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request refactors internal naming and function signatures related to factory registration, spawning, and closing.

  • Changes include removing the context parameter from registerFactory
  • Renaming produceServices/closeServices to spawnFactories/closeFactories in both production and test code

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
registry_test.go Updated tests to call registerFactory without a context and use new names.
registry.go Refactored registerFactory, spawnFactories, and closeFactories function names.
factory_test.go Revised factory.load tests to remove external context checks.
factory.go Adjusted load method to create a cancellable context internally.
container.go Updated registration and lifecycle method calls to align with the refactoring.

@pavelpatrin pavelpatrin merged commit 0a67b63 into main Jun 10, 2025
1 check passed
@pavelpatrin pavelpatrin deleted the code-refinement-2 branch June 11, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant