Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Delete some useless code #207

Merged
merged 1 commit into from
May 25, 2017
Merged

Delete some useless code #207

merged 1 commit into from
May 25, 2017

Conversation

thuningxu
Copy link
Contributor

@thuningxu thuningxu commented May 18, 2017

readMessagesPump() has some code to compute readBatchSize which is never used later.

@thuningxu thuningxu requested review from aravindvs and kirg May 18, 2017 21:44
@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 68.466% when pulling bfa1136 on refactor into 7ecf58d on master.


if readBatchSize < int(conn.initialCredits/10) {
readBatchSize = int(conn.initialCredits / 10)
}

for {
select {
Copy link
Contributor

Choose a reason for hiding this comment

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

This will change the behavior. Previously we'll drain all messages before returning even if close channel is set. The new behavior will not drain messages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right.

@thuningxu thuningxu changed the title Delete some useless code and refactor a bit Delete some useless code May 18, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 68.028% when pulling 2e5886f on refactor into 7ecf58d on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 68.147% when pulling 4b7dccb on refactor into 7ecf58d on master.

@thuningxu thuningxu merged commit 7e18dff into master May 25, 2017
@kobeyang kobeyang deleted the refactor branch July 7, 2017 07:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants