Skip to content

Commit

Permalink
Merge pull request #44 from SiaFoundation/dependabot/go_modules/all-d…
Browse files Browse the repository at this point in the history
…ependencies-5b40dc120f

Bump the all-dependencies group with 2 updates
  • Loading branch information
n8maninger authored Jun 17, 2024
2 parents dc0275b + 47bac19 commit d71f0b6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
10 changes: 6 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
module go.sia.tech/explored

go 1.21.6
go 1.21.8

toolchain go1.22.4

require (
github.com/mattn/go-sqlite3 v1.14.22
go.etcd.io/bbolt v1.3.10
go.sia.tech/core v0.2.5
go.sia.tech/coreutils v0.0.4
go.sia.tech/core v0.2.7
go.sia.tech/coreutils v0.0.6
go.sia.tech/jape v0.11.1
go.uber.org/zap v1.27.0
lukechampine.com/frand v1.4.2
Expand All @@ -18,7 +20,7 @@ require (
github.com/julienschmidt/httprouter v1.3.0 // indirect
go.sia.tech/mux v1.2.0 // indirect
go.uber.org/multierr v1.10.0 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/tools v0.7.0 // indirect
)
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKs
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
go.etcd.io/bbolt v1.3.10 h1:+BqfJTcCzTItrop8mq/lbzL8wSGtj94UO/3U31shqG0=
go.etcd.io/bbolt v1.3.10/go.mod h1:bK3UQLPJZly7IlNmV7uVHJDxfe5aK9Ll93e/74Y9oEQ=
go.sia.tech/core v0.2.5 h1:uGyaFQNPbbMOg6YpvSevx+FXoQn9Itfsq6rbB6MMq34=
go.sia.tech/core v0.2.5/go.mod h1:tf07w3f/8XRtK1XoHl8C/MXzzUp/MEUuZE22L5uoCDQ=
go.sia.tech/coreutils v0.0.4 h1:I8FhhVwpWF1kHu+PkHl4jW/UteEJ64mlqTlOWYLd1J4=
go.sia.tech/coreutils v0.0.4/go.mod h1:JOzeygRc1EGx6LQo4v7GrNrE1omJB3wpTUE7YTIlm+M=
go.sia.tech/core v0.2.7 h1:9Q/3BHL6ziAMPeiko863hhTD/Zs2s7OqEUiPKouDny8=
go.sia.tech/core v0.2.7/go.mod h1:BMgT/reXtgv6XbDgUYTCPY7wSMbspDRDs7KMi1vL6Iw=
go.sia.tech/coreutils v0.0.6 h1:xLpv3JyvbOoXcX3gC6a6Y3zQ/MZn/fyFvuPIzv/e/Eg=
go.sia.tech/coreutils v0.0.6/go.mod h1:EiDcQk2qLuP32Qoj/XphY9fbjTXphJhJZMERoC4LF0c=
go.sia.tech/jape v0.11.1 h1:M7IP+byXL7xOqzxcHUQuXW+q3sYMkYzmMlMw+q8ZZw0=
go.sia.tech/jape v0.11.1/go.mod h1:4QqmBB+t3W7cNplXPj++ZqpoUb2PeiS66RLpXmEGap4=
go.sia.tech/mux v1.2.0 h1:ofa1Us9mdymBbGMY2XH/lSpY8itFsKIo/Aq8zwe+GHU=
Expand All @@ -26,8 +26,8 @@ go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=
go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI=
golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI=
golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM=
golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs=
golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE=
Expand Down
10 changes: 2 additions & 8 deletions persist/sqlite/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ func encode(obj any) any {
case []types.Hash256:
var buf bytes.Buffer
e := types.NewEncoder(&buf)
e.WritePrefix(len(obj))
for _, o := range obj {
o.EncodeTo(e)
}
types.EncodeSlice(e, obj)
e.Flush()
return buf.Bytes()
case uint64:
Expand Down Expand Up @@ -70,10 +67,7 @@ func (d *decodable) Scan(src any) error {
return dec.Err()
case *[]types.Hash256:
dec := types.NewBufDecoder(src)
*v = make([]types.Hash256, dec.ReadPrefix())
for i := range *v {
(*v)[i].DecodeFrom(dec)
}
types.DecodeSlice(dec, v)
return dec.Err()
case *uint64:
*v = binary.BigEndian.Uint64(src)
Expand Down

0 comments on commit d71f0b6

Please sign in to comment.