-
Notifications
You must be signed in to change notification settings - Fork 370
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
Conversation
Signed-off-by: Lovesh Harchandani <[email protected]>
plenum/server/node.py
Outdated
@@ -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)) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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]>
Signed-off-by: Lovesh Harchandani <[email protected]>
Signed-off-by: Lovesh Harchandani <[email protected]>
if self.reached_end is True: | ||
raise StopIteration | ||
item = next(self.iterator) | ||
key = item[0] if isinstance(item, tuple) else item |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
)
Signed-off-by: Lovesh Harchandani [email protected]