forked from mirrors/statsd_exporter
Remove ioutil
Signed-off-by: inosato <si17_21@yahoo.co.jp>
This commit is contained in:
parent
c2505cf91e
commit
b43a60e9c8
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ package mapper
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"regexp"
|
||||
"sync"
|
||||
"time"
|
||||
|
@ -267,7 +267,7 @@ func (m *MetricMapper) InitFromYAMLString(fileContents string) error {
|
|||
}
|
||||
|
||||
func (m *MetricMapper) InitFromFile(fileName string) error {
|
||||
mappingStr, err := ioutil.ReadFile(fileName)
|
||||
mappingStr, err := os.ReadFile(fileName)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue