mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-22 17:22:26 +00:00
refactor: remove ioutil module usage
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
@ -4,7 +4,6 @@ package file
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
@ -27,7 +26,7 @@ type file struct {
|
||||
}
|
||||
|
||||
func (c *file) Read() ([]byte, error) {
|
||||
return ioutil.ReadFile(c.path)
|
||||
return os.ReadFile(c.path)
|
||||
}
|
||||
|
||||
// Watch listen for config changes and send updated content to the updates channel
|
||||
|
Reference in New Issue
Block a user