-
Notifications
You must be signed in to change notification settings - Fork 1k
move all record_event instances to send a request #13744
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
Conversation
@@ -369,28 +369,26 @@ def create_service(cls, context, request): | |||
|
|||
@implementer(IProjectService) | |||
class ProjectService: | |||
def __init__(self, session, remote_addr, metrics=None, ratelimiters=None) -> None: | |||
def __init__(self, session, metrics=None, ratelimiters=None) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
biggest refactor here. removed remote_addr on service instantiation and made it required when calling the one method that uses it.
tempted to remove |
We should definitely do this, but in a separate PR. |
yes, yes, I omitted "in this pr" from that sentence |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing blocking, but some improvements suggested.
One more step towards #8158, updates all
record_event
calls to use arequest
.