gigibox
2023-06-21 8a5f5dc40e82bf98e307082726ebe860002e019f
report/loop.go
@@ -2,7 +2,9 @@
import (
   "context"
   "kingdee-dbapi/config"
   "kingdee-dbapi/logger"
   "time"
)
var ctx context.Context
@@ -37,8 +39,8 @@
         //sql := []byte("select * from t_icitem where FItemID=3316")
         //ok := nsqclient.Produce(config.Options.QueryTopic, sql)
         //logger.Debug("测试请求接口, %v", ok)
         //
         //time.Sleep(time.Duration(config.Options.SyncInterval) * time.Second)
         time.Sleep(time.Duration(config.Options.SyncInterval) * time.Second)
      }
   }
}