Commit c518196079356d66562cb7be28e81a160d13524a

Authored by 陆恒
1 parent a146db7e
Exists in master

提交

src/HttpServer/logic/httpserver.go
@@ -26,6 +26,7 @@ func StartHttpServe() { @@ -26,6 +26,7 @@ func StartHttpServe() {
26 26
27 //just for test 27 //just for test
28 func Testsendhttp() { 28 func Testsendhttp() {
  29 + logger.Info("start Testsendhttp")
29 result, err := redishandler.GetRedisClient().HGetAllValues(redis.USER_DATA_KEY) 30 result, err := redishandler.GetRedisClient().HGetAllValues(redis.USER_DATA_KEY)
30 if err != nil { 31 if err != nil {
31 logger.Error("TestDDt failed") 32 logger.Error("TestDDt failed")
src/HttpServer/main/main.go
@@ -67,7 +67,7 @@ func main() { @@ -67,7 +67,7 @@ func main() {
67 //logic.Test() 67 //logic.Test()
68 //go logic.StartHttpServe() 68 //go logic.StartHttpServe()
69 //go logic.StartHttpTicker() 69 //go logic.StartHttpTicker()
70 - time.Sleep(time.Duration(2) * time.Second) 70 + //time.Sleep(time.Duration(2) * time.Second)
71 logic.Testsendhttp() 71 logic.Testsendhttp()
72 72
73 select { 73 select {