@@ -62,7 +62,6 @@ fn merge_global_store(
6262#[ actix_web:: main]
6363async fn main ( ) -> std:: io:: Result < ( ) > {
6464 dotenvy:: dotenv ( ) . unwrap ( ) ;
65- // Usage: <program> <current_node_address> [join_node_address]
6665 let args: Vec < String > = env:: args ( ) . collect ( ) ;
6766 if args. len ( ) < 2 {
6867 eprintln ! ( "Usage: {} <current_node_address> [join_node_address]" , args[ 0 ] ) ;
@@ -86,7 +85,6 @@ async fn main() -> std::io::Result<()> {
8685 } ) ;
8786 let _ = APP_STATE . set ( state. clone ( ) ) ;
8887
89- // Load cold storage (snapshot + WAL replay) from disk.
9088 match load_all_tables ( & state) . await {
9189 Ok ( _) => println ! ( "Cold storage loaded" ) ,
9290 Err ( e) => eprintln ! ( "Error loading cold storage: {}" , e) ,
@@ -115,7 +113,7 @@ async fn main() -> std::io::Result<()> {
115113
116114 // Send join request.
117115 let client = reqwest:: Client :: new ( ) ;
118- let join_url = format ! ( "http:// {}/join" , join_node) ;
116+ let join_url = format ! ( "{}/join" , join_node) ;
119117 match client
120118 . post ( & join_url)
121119 . json ( & json ! ( {
@@ -143,7 +141,7 @@ async fn main() -> std::io::Result<()> {
143141
144142
145143 // Pull the remote state for all tables.
146- let store_url = format ! ( "http:// {}/store" , join_node) ;
144+ let store_url = format ! ( "{}/store" , join_node) ;
147145 match client. get ( & store_url) . header ( "x-api-key" , std:: env:: var ( "CLUSTER_SECRET" ) . unwrap_or_default ( ) ) . send ( ) . await {
148146 Ok ( resp) => {
149147 if resp. status ( ) . is_success ( ) {
0 commit comments