Skip to content

refactor: yank store's RPC gRPC service#2147

Merged
Mirko-von-Leipzig merged 12 commits into
nextfrom
mirko/yank-store-rpc
May 28, 2026
Merged

refactor: yank store's RPC gRPC service#2147
Mirko-von-Leipzig merged 12 commits into
nextfrom
mirko/yank-store-rpc

Conversation

@Mirko-von-Leipzig
Copy link
Copy Markdown
Collaborator

Removes the final internal store gRPC service -- RPC.

It does this by in-lining the functions into State and using that directly in the RPC layer.

@Mirko-von-Leipzig Mirko-von-Leipzig added store Related to the store component rpc Related to the RPC component no changelog This PR does not require an entry in the `CHANGELOG.md` file labels May 27, 2026
}
}

fn transaction_record_to_proto(record: TransactionRecord) -> proto::rpc::TransactionRecord {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why are these not From<> implementations anymore?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I figured we'd want to move these to the new gRPC implementation instead, so having them already owned here made sense to me 🤔

But I guess I didn't think overly hard here, was mostly just because the original From lived in the store where they are no longer available.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Oh actually its because the store no longer uses the proto crate, and therefore we have the orphan rule. Either the proto crate must use the store, or vice versa. Neither really makes sense, so the transform is done here.

Comment thread crates/rpc/src/server/api.rs
Copy link
Copy Markdown
Collaborator

@sergerad sergerad left a comment

Choose a reason for hiding this comment

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

LGTM assuming its intended that RpcService::new and Rpc::serve are not used for now.

Also +1 about the From impls mentioned by @kkovaacs

Base automatically changed from mirko/yank-store-bp to next May 28, 2026 13:20
@Mirko-von-Leipzig Mirko-von-Leipzig enabled auto-merge (squash) May 28, 2026 13:38
@Mirko-von-Leipzig Mirko-von-Leipzig merged commit 183dd4c into next May 28, 2026
20 checks passed
@Mirko-von-Leipzig Mirko-von-Leipzig deleted the mirko/yank-store-rpc branch May 28, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file rpc Related to the RPC component store Related to the store component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants