-
Notifications
You must be signed in to change notification settings - Fork 128
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
[jormungandr] Use transfer pool #3867
Conversation
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.
Do we have tests around this functionality? It'd be nice to see that there is no regression after this refactorization.
if section.type != response_pb2.TRANSFER: | ||
continue | ||
transfer_pool.wait_and_complete(section) |
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.
How about this instead?
if section.type != response_pb2.TRANSFER: | |
continue | |
transfer_pool.wait_and_complete(section) | |
if section.type == response_pb2.TRANSFER: | |
transfer_pool.wait_and_complete(section) |
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.
it's more like a personal choice 😸 I did so coz I hate indentations in codes...
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.
It's one more line and the indentation is there anyway 🤷 Let's stop doing Python if indentation is a problem 😛
@woshilapin yep, there are a bunch of functional tests around on this feature |
source/jormungandr/jormungandr/scenarios/helper_classes/transfer.py
Outdated
Show resolved
Hide resolved
…er.py Co-authored-by: pbench <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
centralize all logics of transfer-computing into class
TransferPool
in order to ease the implementation of ACCESS_POINT_TRANSFER