Skip to content

Commit

Permalink
fix proto endpoint bad naming
Browse files Browse the repository at this point in the history
  • Loading branch information
lvboudre committed May 10, 2024
1 parent b91a0b8 commit 4959006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion yellowstone-grpc-proto/proto/yellowstone-log.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ option go_package = "github.com/rpcpool/solana-geyser-grpc/golang/proto";
package yellowstone.log;

service YellowstoneLog {
rpc consume(ConsumeRequest) returns (stream geyser.SubscribeUpdate) {}
rpc Consume(ConsumeRequest) returns (stream geyser.SubscribeUpdate) {}
}


Expand Down
6 changes: 3 additions & 3 deletions yellowstone-grpc-tools/src/scylladb/consumer/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,12 @@ pub type LogStream = Pin<Box<dyn Stream<Item = Result<SubscribeUpdate, tonic::St
#[tonic::async_trait]
impl YellowstoneLog for ScyllaYsLog {
#[doc = r" Server streaming response type for the consume method."]
type consumeStream = LogStream;
type ConsumeStream = LogStream;

async fn consume(
&self,
request: tonic::Request<ConsumeRequest>,
) -> Result<tonic::Response<Self::consumeStream>, tonic::Status> {
) -> Result<tonic::Response<Self::ConsumeStream>, tonic::Status> {
let cr = request.into_inner();

let consumer_id = cr.consumer_id.clone().unwrap_or(Uuid::new_v4().to_string());
Expand Down Expand Up @@ -475,7 +475,7 @@ impl YellowstoneLog for ScyllaYsLog {

let ret = ReceiverStream::new(rx);

let res = Response::new(Box::pin(ret) as Self::consumeStream);
let res = Response::new(Box::pin(ret) as Self::ConsumeStream);
Ok(res)
}
}
Expand Down

0 comments on commit 4959006

Please sign in to comment.