update dependencies

This commit is contained in:
Niko Storni 2023-05-30 18:17:46 +02:00
parent 4632fdd52b
commit cfefe99de1
16 changed files with 828 additions and 382 deletions
blobsdownloader

View file

@ -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)
}