Skip to content
This repository has been archived by the owner on Dec 7, 2024. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
naomijub committed May 16, 2023
1 parent d257c2c commit 8db5380
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 6 additions & 2 deletions gxtdb-rs/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.build_server(true)
.compile_well_known_types(true)
.compile(
&["../resources/service.proto", "../resources/transactions.proto"],
&["../resources/"])?;
&[
"../resources/service.proto",
"../resources/transactions.proto",
],
&["../resources/"],
)?;
Ok(())
}
9 changes: 7 additions & 2 deletions gxtdb-rs/tests/mock.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use gxtdb_rs::api::{self};
use gxtdb_rs::api::grpc_api_server::{GrpcApi, GrpcApiServer};
use gxtdb_rs::api::{self};
use tonic::transport::{Endpoint, Server, Uri};
use tower::service_fn;

Expand All @@ -15,7 +15,12 @@ impl GrpcApi for ServerMock {
Ok(tonic::Response::new(api::StatusResponse::default()))
}

async fn submit_tx(&self, _request: tonic::Request<api::SubmitRequest>) -> Result<tonic::Response<api::SubmitResponse>, tonic::Status> { todo!() }
async fn submit_tx(
&self,
_request: tonic::Request<api::SubmitRequest>,
) -> Result<tonic::Response<api::SubmitResponse>, tonic::Status> {
todo!()
}
}

pub async fn client() -> gxtdb_rs::Client {
Expand Down

0 comments on commit 8db5380

Please sign in to comment.