is the truncate really necessary?
This commit is contained in:
parent
1ecb5ecdba
commit
9fbf73c1e9
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ func (c *sungrowConn) Write(msg []byte) (int, error) {
|
|||
defer c.mu.Unlock()
|
||||
c.txid = binary.BigEndian.Uint16(msg[:2])
|
||||
|
||||
c.fifo.Truncate(0)
|
||||
//c.fifo.Truncate(0)
|
||||
|
||||
bs := c.block.BlockSize()
|
||||
padlen := bs - (len(msg) % bs)
|
||||
|
|
Loading…
Reference in a new issue