Skip to content

overlay tech debt: flow control#3686

Merged
latobarita merged 4 commits intostellar:masterfrom
marta-lokhova:flow_control_refactor
Apr 20, 2023
Merged

overlay tech debt: flow control#3686
latobarita merged 4 commits intostellar:masterfrom
marta-lokhova:flow_control_refactor

Conversation

@marta-lokhova
Copy link
Contributor

Resolves #3676

First pass at decoupling Peer class into separate modules to ease code reviewing and testing. For now, I kept the tests as-is, but in the next iteration it'd be nice to audit and cleanup tests as well (maybe when we add bytes accounting). Specifically, it should now be easier to test flow-control-specific functionality (capacity accounting, outbound queuing, outbound purging etc) in an isolated way without depending on the internals of Peer/Application.

@marta-lokhova marta-lokhova force-pushed the flow_control_refactor branch from 8d1b2f7 to 4290a2b Compare April 1, 2023 00:42
@mbsdf mbsdf self-requested a review April 6, 2023 21:17
Copy link

@mbsdf mbsdf left a comment

Choose a reason for hiding this comment

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

LGTM so far

@marta-lokhova marta-lokhova requested a review from SirTyson April 19, 2023 00:35
@mbsdf mbsdf requested a review from graydon April 19, 2023 19:29
Copy link
Contributor

@SirTyson SirTyson left a comment

Choose a reason for hiding this comment

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

LGTM with a few typos and minor cleanups.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Any reason for C style cast here but static_cast below?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, this was copy pasta from elsewhere. Updated this function to use static_cast.

Copy link
Contributor

Choose a reason for hiding this comment

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

This should be const

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done (other functions too)

Copy link
Contributor

Choose a reason for hiding this comment

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

Typo

Copy link
Contributor

Choose a reason for hiding this comment

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

Const police

Copy link
Contributor

Choose a reason for hiding this comment

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

Const police

Copy link
Contributor

Choose a reason for hiding this comment

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

Const police

Copy link
Contributor

Choose a reason for hiding this comment

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

Const police

Copy link
Contributor

Choose a reason for hiding this comment

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

Const police

Copy link
Contributor

@graydon graydon left a comment

Choose a reason for hiding this comment

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

Quick skim (and sense that this is a no-op / refactor) LGTM

@marta-lokhova marta-lokhova force-pushed the flow_control_refactor branch 2 times, most recently from ed3dce1 to ea98ae2 Compare April 20, 2023 16:48
@marta-lokhova marta-lokhova force-pushed the flow_control_refactor branch from ea98ae2 to 11fcc58 Compare April 20, 2023 17:42
@graydon
Copy link
Contributor

graydon commented Apr 20, 2023

r+ 11fcc58

@latobarita latobarita merged commit 827bcf4 into stellar:master Apr 20, 2023
Copy link

@mbsdf mbsdf left a comment

Choose a reason for hiding this comment

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

flow control in bytes PR #3737 is after this overlay refactoring PR #3686 - previous flow control in bytes PR #3607 is closed

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.

overlay tech debt: flow control

5 participants