Merge branch 'master' into master
Some checks failed
automerge / automerge (pull_request) Failing after 29s
lint / lint (pull_request) Successful in 46s
autoapprove / autoapprove (pull_request) Failing after 36s
test / test (pull_request) Successful in 12m52s
dependabot-automerge / automerge (pull_request) Failing after 13m18s
Some checks failed
automerge / automerge (pull_request) Failing after 29s
lint / lint (pull_request) Successful in 46s
autoapprove / autoapprove (pull_request) Failing after 36s
test / test (pull_request) Successful in 12m52s
dependabot-automerge / automerge (pull_request) Failing after 13m18s
This commit is contained in:
commit
d17ad2df98
@ -3,7 +3,6 @@ package file
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"reflect"
|
||||
|
||||
@ -44,7 +43,7 @@ func (w *fileWatcher) run() {
|
||||
return
|
||||
}
|
||||
var buf []byte
|
||||
buf, err = ioutil.ReadAll(io.LimitReader(fp, int64(codec.DefaultMaxMsgSize)))
|
||||
buf, err = io.ReadAll(io.LimitReader(fp, int64(codec.DefaultMaxMsgSize)))
|
||||
if err == nil {
|
||||
err = w.opts.Codec.Unmarshal(buf, dst)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user