Skip to content

Commit

Permalink
update data info
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jul 12, 2024
1 parent 382ad93 commit 68b6dd4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion network/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"strings"
)

var BytebufLen int = 10000
var BytebufLen int64 = 10000000000
var IMsg MsgHandleClt.Msg_data

type OnlineUser struct {
Expand Down Expand Up @@ -62,6 +62,10 @@ func (this *OnlineUser) readLoop() {
}
select {
case this.inChan <- content:
//case <-time.After(3 * time.Second):
// fmt.Println("超时----")
default:
fmt.Println("Channel is empty, unable to read data")
}
}
}
Expand Down

0 comments on commit 68b6dd4

Please sign in to comment.