re-add that truncate in case it's related to misreads
This commit is contained in:
parent
137a895704
commit
c16b5f973e
1 changed files with 1 additions and 2 deletions
|
@ -56,8 +56,7 @@ func (c *sungrowConn) Write(msg []byte) (int, error) {
|
|||
c.mu.Lock()
|
||||
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