update dependencies
This commit is contained in:
parent
4632fdd52b
commit
cfefe99de1
16 changed files with 828 additions and 382 deletions
blobsdownloader
|
@ -2,7 +2,6 @@ package blobsdownloader
|
|||
|
||||
import (
|
||||
"encoding/hex"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
|
@ -26,7 +25,7 @@ func DownloadBlob(hash string, save bool, blobsDir string) (*stream.Blob, error)
|
|||
if err != nil {
|
||||
return nil, errors.Err(err)
|
||||
}
|
||||
err = ioutil.WriteFile(blobsDir+hash, blob, 0644)
|
||||
err = os.WriteFile(blobsDir+hash, blob, 0644)
|
||||
if err != nil {
|
||||
return nil, errors.Err(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue