mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 08:23:34 +01:00
lib/protoparser/clusternative: typo fix after 4fddcf4c83
This commit is contained in:
parent
cf87050d83
commit
a47754b689
@ -109,8 +109,8 @@ func sendAck(bc *handshake.BufferedConn, status byte) error {
|
||||
}
|
||||
b := auxBufPool.Get()
|
||||
defer auxBufPool.Put(b)
|
||||
b.B[0] = status
|
||||
if _, err := bc.Write(b.B[:1]); err != nil {
|
||||
b.B = append(b.B[:0], status)
|
||||
if _, err := bc.Write(b.B); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := bc.Flush(); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user