This commit is contained in:
Bryan Stitt 2022-06-05 22:54:02 +00:00
parent ea923c99c6
commit 2a8ec0ea61
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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<Web3ProxyApp>) -> anyhow::Result<()> {
@ -21,7 +20,7 @@ pub async fn run(port: u16, proxy_app: Arc<Web3ProxyApp>) -> 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))