Update workflows #97

Merged
vtolstov merged 2 commits from atolstikhin/micro-config-file:master into master 2024-12-12 11:12:48 +03:00
Showing only changes of commit d17ad2df98 - Show all commits

View File

@ -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)
}