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

[DONE] client SendRequest returns message id #21

Merged
merged 1 commit into from
Jun 25, 2018

Conversation

rcmgleite
Copy link
Contributor

No description provided.

@rcmgleite rcmgleite requested a review from felipejfc June 25, 2018 21:11
@coveralls
Copy link

coveralls commented Jun 25, 2018

Pull Request Test Coverage Report for Build 216

  • 3 of 6 (50.0%) changed or added relevant lines in 1 file are covered.
  • 13 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.3%) to 77.283%

Changes Missing Coverage Covered Lines Changed/Added Lines %
client/client.go 3 6 50.0%
Files with Coverage Reduction New Missed Lines %
client/client.go 1 35.59%
modules/binary.go 2 70.83%
agent/agent.go 10 78.65%
Totals Coverage Status
Change from base Build 209: -0.3%
Covered Lines: 3266
Relevant Lines: 4226

💛 - Coveralls

client/client.go Outdated
@@ -374,8 +375,8 @@ func (c *Client) sendMsg(msgType message.Type, route string, data []byte) error
}

if err != nil {
return err
return 0, err
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see why not return the id here instead of 0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But if an error occurred what is the point on having the id? It should probably not be used anyway

@rcmgleite rcmgleite force-pushed the feature/pitaya-client-message-id branch from d8882d0 to 4e4f74c Compare June 25, 2018 21:34
@rcmgleite rcmgleite merged commit 4e4f74c into master Jun 25, 2018
@rcmgleite rcmgleite deleted the feature/pitaya-client-message-id branch June 25, 2018 21:48
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