lib/protoparser/clusternative: typo fix after 4fddcf4c83

This commit is contained in:
Aliaksandr Valialkin 2021-10-08 15:37:57 +03:00
parent cf87050d83
commit a47754b689
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -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 {