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

feat: port search for async #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asyncmind0
Copy link

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 91.432% when pulling 27afe88 on StreetHawkInc:implment_search into 3a46bb3 on rambler-digital-solutions:master.

Copy link
Collaborator

@singulared singulared left a comment

Choose a reason for hiding this comment

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

Hello @jagguli!
Thanks for your PR but i have some questions:
Can you add some tests for search methods and please check my comment in _request method

self._writer.write(self._encode_message(msg_code, msg))
if not isinstance(msg, Msg):
msg = self._encode_message(msg_code, msg)
self._writer.write(msg)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can't pass Msg instance directly into https://docs.python.org/3/library/asyncio-protocol.html#asyncio.WriteTransport.write.
We need to add some transformation method Msg() -> bytes

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maby we can use something like:

self._encode_message(*msg[:2])

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.

3 participants