Skip to content

Commit

Permalink
moved RPC implementations into own crate
Browse files Browse the repository at this point in the history
  • Loading branch information
idky137 committed Apr 18, 2024
1 parent 8df38dc commit 9e8c8e7
Show file tree
Hide file tree
Showing 11 changed files with 241 additions and 355 deletions.
13 changes: 9 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions z-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ version = "0.1.0"
edition = "2021"

[[bin]]
name = "zproxy"
name = "zingoproxyd"
path = "src/bin/zproxy.rs"

[lib]
name = "z_proxy_lib"
name = "zingoproxylib"
path = "src/lib.rs"

[dependencies]
Expand All @@ -21,8 +21,3 @@ tonic = "0.10.2"
zcash_client_backend = { git = "https://github.com/zingolabs/librustzcash.git", branch = "nym_integration", features = ["lightwalletd-tonic"] }
# zingo-netutils = { git = "https://github.com/aloearev/zingolib.git", branch = "cratify_netutils" }
zingo-netutils = { git = "https://github.com/zingolabs/zingolib.git", branch = "nym_integration" }
prost = "0.12"
bytes = "1.1"
tokio-socks = "0.5"
ctrlc = "3.2.1"

6 changes: 2 additions & 4 deletions z-proxy/src/bin/zproxy.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
// zproxy.rs [bin]
// use: zingo-proxy - recieves Grpc calls, passes Grpc calls to lightwalletd/zebrad, returns Grpc response.
//
//! Zingo-Proxy daemon
use std::thread;
use std::time::Duration;

use z_proxy_lib::zproxy::spawn_server;
use zingoproxylib::server::spawn_server;

#[tokio::main]
async fn main() {
Expand Down
7 changes: 2 additions & 5 deletions z-proxy/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// zingo-proxy
// lib.rs
//
//! Zingo-Proxy gRPC Server
mod utils;
pub mod zproxy;
pub mod server;
3 changes: 0 additions & 3 deletions z-proxy/src/utils.rs

This file was deleted.

Loading

0 comments on commit 9e8c8e7

Please sign in to comment.