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

action_repository: no need for http.Request #7124

Merged
merged 1 commit into from
Dec 29, 2020

Conversation

shlomi-noach
Copy link
Contributor

I was working on an internal POC when I needed to refactor some code around actions_repository.go; I noticed something that bothered me: most action functions received http.Request. It bothered me because I wanted to be able to run some actions irrespective of http. After looking deeper, I noticed no existing action uses the http.Request.

So this PR is code cleanup for removing http.Request from function signatures and callers, without affecting app logic.

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@indera-shsp
Copy link
Contributor

👍

@shlomi-noach shlomi-noach requested a review from a team December 13, 2020 07:47
@shlomi-noach
Copy link
Contributor Author

🙏 request for additional review

Copy link
Contributor

@rohit-nayak-ps rohit-nayak-ps left a comment

Choose a reason for hiding this comment

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

lgtm

@sougou sougou merged commit b5a52a1 into vitessio:master Dec 29, 2020
@sougou sougou deleted the vtctld-actions-no-req branch December 29, 2020 02:14
@deepthi deepthi changed the title action_respository: no need for http.Request action_repository: no need for http.Request Jan 5, 2021
@askdba askdba added this to the v9.0 milestone Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants