remove bot and message.go
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
Go / Test (1.22) (push) Has been cancelled
Go / Test (^1.22) (push) Has been cancelled

This commit is contained in:
2025-08-23 17:21:54 +08:00
parent 0958972953
commit f0bb92bdb9
29 changed files with 68 additions and 11993 deletions

View File

@ -329,6 +329,10 @@ func (c *Chunk) PutData(data []byte) error {
r := bytes.NewReader(data)
for i := range c.Sections {
_, err := c.Sections[i].ReadFrom(r)
if errors.Is(err, io.EOF) {
c.Sections = c.Sections[:i]
break
}
if err != nil {
return err
}