Updated the deprecated ioutil dependency (#4239)

This commit is contained in:
Zachary Walters
2023-02-21 21:47:33 -06:00
committed by GitHub
parent 2c4dbaedf2
commit ef2f741823
4 changed files with 8 additions and 11 deletions

View File

@@ -4,7 +4,6 @@ import (
"encoding/json"
transport "github.com/Jille/raft-grpc-transport"
"io"
"io/ioutil"
"math/rand"
"os"
"path"
@@ -90,7 +89,7 @@ func (s *StateMachine) Snapshot() (hashicorpRaft.FSMSnapshot, error) {
}
func (s *StateMachine) Restore(r io.ReadCloser) error {
b, err := ioutil.ReadAll(r)
b, err := io.ReadAll(r)
if err != nil {
return err
}