Skip to content

Commit

Permalink
Upgrade toolchain.
Browse files Browse the repository at this point in the history
  • Loading branch information
udhos committed Feb 13, 2024
1 parent 85dea63 commit b8775d2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/groupcache-exporter-google/groupcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func startGroupcache() *groupcache.Group {
//
// 64 MB max per-node memory usage
cache := groupcache.NewGroup("files", groupcacheSizeBytes, groupcache.GetterFunc(
func(ctx context.Context, key string, dest groupcache.Sink) error {
func(_ /*ctx*/ context.Context, key string, dest groupcache.Sink) error {

log.Printf("getter: loading: key:%s", key)

Expand Down
2 changes: 1 addition & 1 deletion examples/groupcache-exporter-mailgun/groupcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func startGroupcache() *groupcache.Group {
//
// 64 MB max per-node memory usage
cache := groupcache.NewGroup("files", groupcacheSizeBytes, groupcache.GetterFunc(
func(ctx context.Context, key string, dest groupcache.Sink) error {
func(_ /*ctx*/ context.Context, key string, dest groupcache.Sink) error {

log.Printf("getter: loading: key:%s, ttl:%v", key, ttl)

Expand Down
2 changes: 1 addition & 1 deletion examples/groupcache-exporter-modernprogram/groupcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func startGroupcache() *groupcache.Group {
//
// 64 MB max per-node memory usage
cache := groupcache.NewGroup("files", groupcacheSizeBytes, groupcache.GetterFunc(
func(ctx context.Context, key string, dest groupcache.Sink) error {
func(_ /*ctx*/ context.Context, key string, dest groupcache.Sink) error {

log.Printf("getter: loading: key:%s, ttl:%v", key, ttl)

Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module github.com/udhos/groupcache_exporter

go 1.21.6
go 1.22.0

require (
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
github.com/mailgun/groupcache/v2 v2.5.0
github.com/modernprogram/groupcache/v2 v2.5.5
github.com/modernprogram/groupcache/v2 v2.5.6
github.com/prometheus/client_golang v1.18.0
)

Expand All @@ -18,6 +18,6 @@ require (
github.com/prometheus/procfs v0.12.0 // indirect
github.com/segmentio/fasthash v1.0.3 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/sys v0.17.0 // indirect
google.golang.org/protobuf v1.32.0 // indirect
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/mailgun/groupcache/v2 v2.5.0 h1:FoNR52GyTQ4jLoliSuyXDANMEoxts6M8ql9jW3htvq8=
github.com/mailgun/groupcache/v2 v2.5.0/go.mod h1:7+O6vXEKAhloSTOJOmkhyksS8l/gIs15fv0ER1ZuhPA=
github.com/modernprogram/groupcache/v2 v2.5.5 h1:DfKTmO+9I6TmbelZEUEAUW6XBENrO1LAUV5SOw2b5SM=
github.com/modernprogram/groupcache/v2 v2.5.5/go.mod h1:lW+JZYFFe7HBd+9DH+hwEJyJEr6fiUfBbLmg/qQjS7A=
github.com/modernprogram/groupcache/v2 v2.5.6 h1:G4e9QJEghQRBIO1WyIkSw1S2vyjpY9DlZgMsVuymYHU=
github.com/modernprogram/groupcache/v2 v2.5.6/go.mod h1:it+NoQbGs35RSn/5bdw6b3QEjEw0bLB/lYIywZrxyFY=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prometheus/client_golang v1.18.0 h1:HzFfmkOzH5Q8L8G+kSJKUx5dtG87sewO+FoDDqP5Tbk=
Expand All @@ -36,8 +36,8 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU=
golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y=
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
Expand Down

0 comments on commit b8775d2

Please sign in to comment.