Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update dependencies #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions blobsdownloader/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ package blobsdownloader

import (
"encoding/hex"
"io/ioutil"
"os"
"time"

"voidwalker/configs"

"github.com/lbryio/lbry.go/v2/extras/errors"
"github.com/lbryio/lbry.go/v2/stream"
"github.com/lbryio/reflector.go/peer"
"github.com/lbryio/reflector.go/server/peer"
"github.com/lbryio/reflector.go/store"
)

func DownloadBlob(hash string, save bool, blobsDir string) (*stream.Blob, error) {
bStore := GetBlobStore()
blob, err := bStore.Get(hash)
blob, _, err := bStore.Get(hash)
if err != nil {
err = errors.Prefix(hash, err)
return nil, errors.Err(err)
Expand All @@ -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)
}
Expand Down
6 changes: 3 additions & 3 deletions compression/compression.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package compression

import (
"io/ioutil"
"mime"
"os"
"path/filepath"

"github.com/lbryio/lbry.go/v2/extras/errors"
Expand All @@ -21,7 +21,7 @@ func Compress(path, fileName, mimeType, storePath string) (string, string, error
return "", "", AlreadyInUseErr
}
defer inUse.Store(false)
file, err := ioutil.ReadFile(path)
file, err := os.ReadFile(path)
if err != nil {
return "", "", errors.Err(err)
}
Expand All @@ -40,7 +40,7 @@ func Compress(path, fileName, mimeType, storePath string) (string, string, error
return "", "", errors.Err(err)
}
compressedPath := filepath.Join(storePath, fileName+".webp")
err = ioutil.WriteFile(compressedPath, webpBin, 0600)
err = os.WriteFile(compressedPath, webpBin, 0600)
if err != nil {
return "", "", errors.Err(err)
}
Expand Down
2 changes: 1 addition & 1 deletion db/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/lbryio/lbry.go/v2/extras/errors"
migrate "github.com/rubenv/sql-migrate"
log "github.com/sirupsen/logrus"
"github.com/volatiletech/sqlboiler/boil"
"github.com/volatiletech/sqlboiler/v4/boil"
)

// Init initializes a database connection based on the dsn provided. It also sets it as the global db connection.
Expand Down
2 changes: 1 addition & 1 deletion db/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
querytools "github.com/lbryio/lbry.go/v2/extras/query"

log "github.com/sirupsen/logrus"
"github.com/volatiletech/sqlboiler/boil"
"github.com/volatiletech/sqlboiler/v4/boil"
)

func logQueryTime(logger *log.Logger, startTime time.Time) {
Expand Down
2 changes: 1 addition & 1 deletion db/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/lbryio/lbry.go/v2/extras/errors"
log "github.com/sirupsen/logrus"
"github.com/volatiletech/sqlboiler/boil"
"github.com/volatiletech/sqlboiler/v4/boil"
)

// TxFunc is a function that can be wrapped in a transaction
Expand Down
113 changes: 92 additions & 21 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,29 +1,100 @@
module voidwalker

go 1.14
go 1.19

replace github.com/btcsuite/btcd => github.com/lbryio/lbrycrd.go v0.0.0-20200203050410-e1076f12bf19

require (
github.com/DATA-DOG/go-sqlmock v1.4.1 // indirect
github.com/friendsofgo/errors v0.9.2
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/gabriel-vasile/mimetype v1.0.5
github.com/gin-contrib/cors v1.3.1
github.com/gin-gonic/gin v1.6.2
github.com/go-sql-driver/mysql v1.5.0
github.com/gofrs/uuid v3.3.0+incompatible // indirect
github.com/gabriel-vasile/mimetype v1.4.1
github.com/gin-contrib/cors v1.4.0
github.com/gin-gonic/gin v1.9.0
github.com/go-sql-driver/mysql v1.7.1
github.com/lbryio/lbry.go/v2 v2.7.2-0.20230307181431-a01aa6dc0629
github.com/lbryio/reflector.go v1.1.3-0.20230309181259-456fe53e0174
github.com/rubenv/sql-migrate v1.4.0
github.com/sirupsen/logrus v1.9.2
github.com/sizeofint/gif-to-webp v0.0.0-20210224202734-e9d7ed071591
github.com/tkanos/gonfig v0.0.0-20210106201359-53e13348de2f
github.com/volatiletech/null/v8 v8.1.2
github.com/volatiletech/sqlboiler/v4 v4.14.1
github.com/volatiletech/strmangle v0.0.4
go.uber.org/atomic v1.10.0
)

require (
github.com/DATA-DOG/go-sqlmock v1.5.0 // indirect
github.com/aws/aws-sdk-go v1.44.217 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bluele/gcache v0.0.2 // indirect
github.com/brk0v/directio v0.0.0-20190225130936-69406e757cf7 // indirect
github.com/btcsuite/btcd v0.0.0-20190824003749-130ea5bddde3 // indirect
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f // indirect
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d // indirect
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd // indirect
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 // indirect
github.com/bytedance/sonic v1.8.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
github.com/fatih/structs v1.1.0 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-errors/errors v1.4.2 // indirect
github.com/go-gorp/gorp/v3 v3.1.0 // indirect
github.com/go-ini/ini v1.67.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.11.2 // indirect
github.com/goccy/go-json v0.10.0 // indirect
github.com/gofrs/uuid v4.2.0+incompatible // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/lbryio/lbry.go/v2 v2.5.3
github.com/lbryio/reflector.go v1.1.2
github.com/mitchellh/mapstructure v1.3.2 // indirect
github.com/rubenv/sql-migrate v0.0.0-20200429072036-ae26b214fa43
github.com/sirupsen/logrus v1.4.2
github.com/sizeofint/gif-to-webp v0.0.0-20190216083302-414816b4e852
github.com/spf13/cast v1.3.1 // indirect
github.com/tkanos/gonfig v0.0.0-20181112185242-896f3d81fadf
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/karrick/godirwalk v1.17.0 // indirect
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
github.com/lbryio/chainquery v1.9.1-0.20230308044402-068c29e02865 // indirect
github.com/lbryio/types v0.0.0-20220224142228-73610f6654a6 // indirect
github.com/leodido/go-urn v1.2.1 // indirect
github.com/lyoshenka/bencode v0.0.0-20180323155644-b7abd7672df5 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/onsi/gomega v1.20.1 // indirect
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
github.com/prometheus/client_golang v1.14.0 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/sizeofint/webp-animation v0.0.0-20190207194838-b631dc900de9 // indirect
github.com/slack-go/slack v0.12.1 // indirect
github.com/spf13/afero v1.9.3 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.15.0 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.9 // indirect
github.com/volatiletech/inflect v0.0.1 // indirect
github.com/volatiletech/null v8.0.0+incompatible
github.com/volatiletech/sqlboiler v3.7.1+incompatible
go.uber.org/atomic v1.5.0
golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1 // indirect
gopkg.in/yaml.v2 v2.3.0 // indirect
github.com/volatiletech/randomize v0.0.1 // indirect
github.com/ybbus/jsonrpc/v2 v2.1.7 // indirect
golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect
golang.org/x/crypto v0.7.0 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/nullbio/null.v6 v6.0.0-20161116030900-40264a2e6b79 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading