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

[WIP] Separate connection and client responsibility #57

Closed
wants to merge 7 commits into from

Conversation

brzuchal
Copy link
Contributor

@brzuchal brzuchal commented Jun 7, 2019

The idea behind this is to separate responsibility of proper connecting with AUTH and SELECT inside Connection class.
So the client is responsible for sending commands and transforming a result.
This introduces ConnectionConfig as well cause we got 3 different URI formats now.

@@ -118,6 +150,8 @@ public function send(array $strings): Promise
yield $this->connect();
yield $this->socket->write($payload);
});

return $deferred->promise();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kelunik tests are passing but I'm not 100% sure if I have changed invoking call and returning Deferred properly. Any advice if it is wrong?

@kelunik
Copy link
Member

kelunik commented Sep 10, 2019

I've done a quite bigger change in v1.0.0-rc1, but responsibilities are separate now, thanks!

@kelunik kelunik closed this Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants