fix lint issues before merge

This commit is contained in:
ZacharyZcR
2026-05-18 17:59:00 +08:00
parent 5942d3bbcb
commit 5a884ca6ad
7 changed files with 17 additions and 13 deletions
+3 -2
View File
@@ -169,9 +169,10 @@ var cqlStreamID int16
func cqlSend(conn net.Conn, opcode byte, body []byte) error {
id := cqlStreamID
cqlStreamID++
if cqlStreamID > 32767 {
if cqlStreamID == 32767 {
cqlStreamID = 0
} else {
cqlStreamID++
}
// frame: [1B version|flags] [2B stream] [1B opcode] [4B length] [body]