From 2a8ec0ea61dd1a1f816d2108d03056409bbc5908 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sun, 5 Jun 2022 22:54:02 +0000 Subject: [PATCH] comment --- redis-cell-client/src/client.rs | 1 + web3-proxy/src/frontend/mod.rs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/redis-cell-client/src/client.rs b/redis-cell-client/src/client.rs index d3b3d0bd..6e3d1a11 100644 --- a/redis-cell-client/src/client.rs +++ b/redis-cell-client/src/client.rs @@ -16,6 +16,7 @@ pub struct RedisCellClient { impl RedisCellClient { // todo: seems like this could be derived // TODO: take something generic for conn + // TODO: use r2d2 for connection pooling? pub fn new( conn: MultiplexedConnection, key: String, diff --git a/web3-proxy/src/frontend/mod.rs b/web3-proxy/src/frontend/mod.rs index fb4d2132..f90f1ec7 100644 --- a/web3-proxy/src/frontend/mod.rs +++ b/web3-proxy/src/frontend/mod.rs @@ -10,7 +10,6 @@ use axum::{ }; use std::net::SocketAddr; use std::sync::Arc; - use crate::app::Web3ProxyApp; pub async fn run(port: u16, proxy_app: Arc) -> anyhow::Result<()> { @@ -21,7 +20,7 @@ pub async fn run(port: u16, proxy_app: Arc) -> anyhow::Result<()> .route("/", post(http_proxy::proxy_web3_rpc)) // `websocket /` goes to `proxy_web3_ws` .route("/", get(ws_proxy::websocket_handler)) - // `GET /index.html` goes to `index` + // `GET /index.html` goes to `index` (todo, somehow combine this with http_proxy::proxy_web3_rpc) .route("/index.html", get(http::index)) // `GET /status` goes to `status` .route("/status", get(http::status))