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

Simplify swbus-edge api #21

Merged
merged 10 commits into from
Nov 26, 2024
Merged

Conversation

erer1243
Copy link
Contributor

@erer1243 erer1243 commented Nov 15, 2024

Please tell me your thoughts on only exposing (Route)DataRequest and Response messages to SwbusEdge clients. I also renamed RouteDataRequest to DataRequest (better name? I found "RouteDataRequest" confusing because I thought it meant "a request for data about routes") and epoch to id.

@r12f r12f self-requested a review November 15, 2024 19:43
@erer1243
Copy link
Contributor Author

I did not previously realize swbus-edge was going to be used for infra stuff like sending traceroutes. So, this pr is not good as-is. Maybe I will make a 'SimpleSwbusEdgeRuntime' or 'ApplicationSwbusEdgeRuntime' that will have this interface, and leave the original, fully-fledged SwbusEdgeRuntime alone.

crates/swbus-proto/proto/swbus.proto Outdated Show resolved Hide resolved
crates/swbus-edge/src/simple.rs Outdated Show resolved Hide resolved
crates/swbus-edge/src/simple.rs Outdated Show resolved Hide resolved
crates/swbus-edge/src/simple.rs Outdated Show resolved Hide resolved
crates/swbus-edge/src/simple.rs Outdated Show resolved Hide resolved
crates/swbus-proto/src/util.rs Outdated Show resolved Hide resolved
crates/swbus-edge/src/simple.rs Outdated Show resolved Hide resolved
crates/swbus-edge/src/simple.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@r12f r12f left a comment

Choose a reason for hiding this comment

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

lgtm!

@r12f r12f merged commit 1d29a41 into sonic-net:master Nov 26, 2024
1 check passed
@erer1243 erer1243 deleted the swbus-edge-simplify branch November 26, 2024 02:11
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