fix: use bufio reader

This commit is contained in:
Derrick Hammer 2023-05-10 14:50:36 -04:00
parent b48db1d8c4
commit 90e4ce6408
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package files
import (
"bufio"
"encoding/hex"
"errors"
"fmt"
@ -62,7 +63,7 @@ func Upload(r io.ReadSeeker) (model.Upload, error) {
return upload, errors.New("file already exists in network, but missing in database")
}
tree, err := bao.ComputeBaoTree(r)
tree, err := bao.ComputeBaoTree(bufio.NewReader(r))
if err != nil {
return upload, err