File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ impl Component {
122
122
Self :: Frontend => frontend ( parse_opts ( matches) ) ,
123
123
Self :: Compactor => compactor ( parse_opts ( matches) ) ,
124
124
Self :: Ctl => ctl ( parse_opts ( matches) ) ,
125
- Self :: Playground => single_node ( SingleNodeOpts :: new_for_playground ( ) ) ,
125
+ Self :: Playground => playground ( ) ,
126
126
Self :: Standalone => standalone ( parse_opts ( matches) ) ,
127
127
Self :: SingleNode => single_node ( parse_opts ( matches) ) ,
128
128
}
@@ -248,6 +248,10 @@ fn single_node(opts: SingleNodeOpts) -> ! {
248
248
risingwave_rt:: main_okk ( |shutdown| risingwave_cmd_all:: standalone ( opts, shutdown) ) ;
249
249
}
250
250
251
+ fn playground ( ) -> ! {
252
+ single_node ( SingleNodeOpts :: new_for_playground ( ) ) ;
253
+ }
254
+
251
255
#[ cfg( test) ]
252
256
mod tests {
253
257
use std:: assert_matches:: assert_matches;
Original file line number Diff line number Diff line change @@ -194,14 +194,11 @@ pub fn map_single_node_opts_to_standalone_opts(opts: SingleNodeOpts) -> ParsedSt
194
194
}
195
195
196
196
// Set listen addresses (force to override)
197
- meta_opts. listen_addr = "0 .0.0.0 :5690" . to_owned ( ) ;
197
+ meta_opts. listen_addr = "127 .0.0.1 :5690" . to_owned ( ) ;
198
198
meta_opts. advertise_addr = "127.0.0.1:5690" . to_owned ( ) ;
199
199
meta_opts. dashboard_host = Some ( "0.0.0.0:5691" . to_owned ( ) ) ;
200
- compute_opts. listen_addr = "0.0.0.0:5688" . to_owned ( ) ;
201
- compactor_opts. listen_addr = "0.0.0.0:6660" . to_owned ( ) ;
202
- if let Some ( frontend_addr) = & opts. node_opts . listen_addr {
203
- frontend_opts. listen_addr . clone_from ( frontend_addr) ;
204
- }
200
+ compute_opts. listen_addr = "127.0.0.1:5688" . to_owned ( ) ;
201
+ compactor_opts. listen_addr = "127.0.0.1:6660" . to_owned ( ) ;
205
202
206
203
// Set Meta addresses for all nodes (force to override)
207
204
let meta_addr = "http://127.0.0.1:5690" . to_owned ( ) ;
You can’t perform that action at this time.
0 commit comments