Browse Source

Modify code comments

Siyuan Ye 2 years ago
parent
commit
baf181aaec
1 changed files with 3 additions and 5 deletions
  1. 3 5
      v1/final/text/main.go

+ 3 - 5
v1/final/text/main.go

@@ -1,6 +1,4 @@
-/*
-遇到mod的问题,先ctrl+s保存一下,然后直接go run main.go  如果不行的话,再使用go mod init,之后再go run main.go
-*/
+
 package main
 
 import (
@@ -170,7 +168,7 @@ func db2_Msg_Set_Goroutine() {
 //get all messages in wach hour
 func test2(finalTime string, lastTimesIndex int) (finalIndex int) {
 	fmt.Println("text2() starts")
-	//goroutine六个channel的初始化
+	//6 goroutines init
 	db1_key_channel = make(chan string, channelSize)
 	db1_val_channel = make(chan string, channelSize)
 	db2_time_key_channel = make(chan string, channelSize)
@@ -415,7 +413,7 @@ func sendOut_real(list <-chan string, c net.Conn, cover *megred) {
 		pd := make([]byte, padding_length)
 		jsons = append(jsons, pd...)
 		if len(jsons) != packetLength {
-			fmt.Println("err出错了,长度不对,rst=", rst)
+			fmt.Println("err,rst=", rst)
 		}
 		c.Write(jsons)
 		real_lock.Lock()