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

refactoring and new tests #598

Merged
merged 4 commits into from
Mar 30, 2018
Merged

refactoring and new tests #598

merged 4 commits into from
Mar 30, 2018

Conversation

lovesh
Copy link
Contributor

@lovesh lovesh commented Mar 29, 2018

Signed-off-by: Lovesh Harchandani [email protected]

Signed-off-by: Lovesh Harchandani <[email protected]>
@lovesh lovesh requested a review from ashcherbakov March 29, 2018 14:33
@@ -2563,11 +2567,16 @@ def updateSeqNoMap(self, committedTxns):

def commitAndSendReplies(self, reqHandler, ppTime, reqs: List[Request],
stateRoot, txnRoot) -> List:
logger.debug('{} going to commit and send replies to client'.format(self))
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it needs to have trace level

@@ -0,0 +1,137 @@
import random
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we remove this file?

Signed-off-by: Lovesh Harchandani <[email protected]>
ashcherbakov
ashcherbakov previously approved these changes Mar 29, 2018
Signed-off-by: Lovesh Harchandani <[email protected]>
ashcherbakov
ashcherbakov previously approved these changes Mar 29, 2018
if self.reached_end is True:
raise StopIteration
item = next(self.iterator)
key = item[0] if isinstance(item, tuple) else item
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we do a special handling for tuples?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because the iterator self.iterator might be over over keys (iterkeys) or key and values both (iteritems)

@ashcherbakov ashcherbakov merged commit 485d8a5 into master Mar 30, 2018
@lovesh lovesh deleted the plugin-refactoring branch April 4, 2018 16:25
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.

2 participants