Move away from deprecated go funcs (#1123)

This commit is contained in:
6543
2022-08-25 08:39:19 +02:00
committed by GitHub
parent d3eea72663
commit f21d854114
5 changed files with 7 additions and 11 deletions

View File

@@ -18,7 +18,6 @@ import (
"context"
"encoding/json"
"io"
"io/ioutil"
"runtime"
"strconv"
"sync"
@@ -211,7 +210,7 @@ func (r *Runner) Run(ctx context.Context) error {
}
// TODO should be configurable
limitedPart = io.LimitReader(part, maxFileUpload)
data, err = ioutil.ReadAll(limitedPart)
data, err = io.ReadAll(limitedPart)
if err != nil {
loglogger.Err(err).Msg("could not read limited part")
}