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

Implemented missing Get... RPCs(GetCastsByMention) in rpc.proto and server.rs issue #189 #213

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

whitetechna
Copy link

Description:

This pull request addresses issue #189: "Implement the remaining read APIs."

The following updates were made to achieve parity with the Get... RPCs in the existing hubs:

  1. Added the missing Get... RPCs to rpc.proto with the required request and response definitions:
  2. rpc GetCastsByMention(FidRequest) returns (MessagesResponse);
  3. Implemented the corresponding RPC logic in server.rs, ensuring consistency with existing RPC implementations.
  4. Verified the new functionality by adding and running comprehensive test cases for the new APIs.

Changes Made:

Updated rpc.proto:
-Added definitions for the missing Get... RPCs, following the existing style and structure:
rpc GetCastsByMention(FidRequest) returns (MessagesResponse);

Updated server.rs:
Implemented the server-side logic for handling the new Get... RPCs, specifically get_casts_by_mention
Reused or adapted existing utility functions to minimize duplication and maintain clean code.

How It Solves the Issue:
These changes bring the Get... RPCs in snapchain to parity with those in the original hubs project, ensuring compatibility and feature completeness.

Checklist:
Added missing Get... RPCs to rpc.proto: rpc GetCastsByMention(FidRequest) returns (MessagesResponse);
Implemented Get... RPC logic in server.rs: get_casts_by_mention
Verified with unit and integration tests.
Reviewed for code quality and adherence to project guidelines.

References:
Issue Link: #189

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.

1 participant