build: refactor makefile

This commit is contained in:
Oleg Lobanov
2021-12-20 23:16:35 +01:00
parent b1e0d5b39f
commit f81857acce
15 changed files with 3333 additions and 87 deletions

View File

@@ -6,7 +6,7 @@ import (
"encoding/hex"
"errors"
"fmt"
"io/ioutil"
"io"
"os"
"path/filepath"
"sync"
@@ -55,7 +55,7 @@ func (f *FileCache) Load(ctx context.Context, key string) (value []byte, exist b
}
defer r.Close()
value, err = ioutil.ReadAll(r)
value, err = io.ReadAll(r)
if err != nil {
return nil, false, err
}