mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-19 15:30:17 +00:00
lib/protoparser/clusternative: typo fix after 4fddcf4c83
This commit is contained in:
parent
cf87050d83
commit
a47754b689
1 changed files with 2 additions and 2 deletions
|
@ -109,8 +109,8 @@ func sendAck(bc *handshake.BufferedConn, status byte) error {
|
||||||
}
|
}
|
||||||
b := auxBufPool.Get()
|
b := auxBufPool.Get()
|
||||||
defer auxBufPool.Put(b)
|
defer auxBufPool.Put(b)
|
||||||
b.B[0] = status
|
b.B = append(b.B[:0], status)
|
||||||
if _, err := bc.Write(b.B[:1]); err != nil {
|
if _, err := bc.Write(b.B); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := bc.Flush(); err != nil {
|
if err := bc.Flush(); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue