From e4840c7de5ff5f1a816a4fd023ba5bf797a4fa9e Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期二, 16 四月 2024 14:03:33 +0800 Subject: [PATCH] 添加失败缓存重发的功能 --- main.go | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/main.go b/main.go index 1e8a151..1c8a2cf 100644 --- a/main.go +++ b/main.go @@ -3,6 +3,7 @@ import ( "context" "fmt" + "gat1400Exchange/cron" "net/http" "os" "os/signal" @@ -38,7 +39,9 @@ // 鍚姩缃戠粶瑙嗛瀛楃鍙犲姞鍣ㄦ湇鍔� go service.NVCSServer() - go service.DeviceInfoReportTask() + + // 鍚姩瀹氭椂浠诲姟 + cron.Init() // Initializing the server in a goroutine so that // it won't block the graceful shutdown handling below -- Gitblit v1.8.0