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

Remove params field from service and handler objects #1424

Merged
merged 3 commits into from Apr 1, 2021

Conversation

alexshtin
Copy link
Member

@alexshtin alexshtin commented Apr 1, 2021

What changed?
Remove params field from service and handler objects.
Move some service and handler initialization logic to constructor from Start() method.

Why?
params object is to pass params to constructors but not to be stored as a field inside object itself.

How did you test it?
Build, run current tests, run canary locally.

Potential risks
No risks.

Is hotfix candidate?
No.

@alexshtin alexshtin requested a review from a team April 1, 2021 06:49
@alexshtin alexshtin changed the title Don't store params object as service field Remove params field from service and handler objects Apr 1, 2021
Comment on lines +74 to +76
ESConfig *config.Elasticsearch
ESClient esclient.Client
DynamicConfigClient dynamicconfig.Client
Copy link
Member Author

Choose a reason for hiding this comment

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

This will be removed soon too.

@alexshtin alexshtin merged commit a3571d1 into temporalio:master Apr 1, 2021
@alexshtin alexshtin deleted the feature/refactor-params branch April 1, 2021 21:08
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.

None yet

2 participants