File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -214,24 +214,24 @@ async fn init_app() {
214214 init_http ( ) . await ;
215215 // judge_market_open().await;
216216}
217- async fn update ( ) {
218- match service:: curd:: update_all_day_k ( ) . await {
219- Ok ( _) => {
220- info ! ( "更新日线数据成功" ) ;
221- NOTICE
222- . lock ( )
223- . unwrap ( )
224- . replace ( "更新日线数据成功" . to_string ( ) ) ;
225- }
226- Err ( e) => {
227- error ! ( "更新日线数据失败:{}" , e) ;
228- NOTICE
229- . lock ( )
230- . unwrap ( )
231- . replace ( format ! ( "更新日线数据失败:{}" , e. to_string( ) ) ) ;
232- }
233- } ;
234- }
217+ // async fn update() {
218+ // match service::curd::update_all_day_k().await {
219+ // Ok(_) => {
220+ // info!("更新日线数据成功");
221+ // NOTICE
222+ // .lock()
223+ // .unwrap()
224+ // .replace("更新日线数据成功".to_string());
225+ // }
226+ // Err(e) => {
227+ // error!("更新日线数据失败:{}", e);
228+ // NOTICE
229+ // .lock()
230+ // .unwrap()
231+ // .replace(format!("更新日线数据失败:{}", e.to_string()));
232+ // }
233+ // };
234+ // }
235235// ///判断是否开市,先发起一个请求,然后sleep 1秒,再发起一个请求,如果两个请求的返回值不一样,则证明开市了,否则证明闭市了。
236236// async fn judge_market_open() {
237237// let response1 = REQUEST.get().unwrap().get("https://qt.gtimg.cn/q=sz159992").await.unwrap();
You can’t perform that action at this time.
0 commit comments