소스 검색

test local status

HeWang 7 달 전
부모
커밋
74c935864c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      aarch64/pjibot_guide/control/pkg/judge_local.go

+ 1 - 1
aarch64/pjibot_guide/control/pkg/judge_local.go

@@ -17,7 +17,7 @@ type StatusMessage struct {
 
 func GetLocalStatus(localStatus *string) {
 	for {
-		time.Sleep(30 * time.Second)
+		time.Sleep(2 * time.Second)
 		_, msg, err := config.WsConn.ReadMessage()
 		if err != nil {
 			log.Println("Error in receive:", err)