Ver código fonte

睡眠时间

fengweiqiang 5 anos atrás
pai
commit
c6e788d49b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      udpfileocr/main.go

+ 1 - 1
udpfileocr/main.go

@@ -81,7 +81,7 @@ func processUdpMsg(act byte, data []byte, ra *net.UDPAddr) {
 		err := json.Unmarshal(data, &mapInfo)
 		if err != nil {
 			if string(data) == "没有新数据" {
-				time.Sleep(time.Minute * 5)
+				time.Sleep(time.Second * 30)
 			} else {
 				time.Sleep(time.Second * 30)
 			}