Skip to content

Commit

Permalink
build: update various go dependencies (#4522)
Browse files Browse the repository at this point in the history
  • Loading branch information
oncilla authored May 14, 2024
1 parent 4c9c342 commit 3f4629d
Show file tree
Hide file tree
Showing 23 changed files with 1,269 additions and 1,329 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe

go_register_toolchains(
nogo = "@//:nogo",
version = "1.21.3",
version = "1.21.10",
)

# Gazelle
Expand Down
2 changes: 1 addition & 1 deletion control/drkey/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ go_library(
"//pkg/log:go_default_library",
"//pkg/private/serrors:go_default_library",
"//private/storage/cleaner:go_default_library",
"@com_github_hashicorp_golang_lru//:go_default_library",
"@com_github_hashicorp_golang_lru_arc_v2//:go_default_library",
],
)

Expand Down
8 changes: 4 additions & 4 deletions control/drkey/arc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
package drkey

import (
lru "github.com/hashicorp/golang-lru"
"github.com/hashicorp/golang-lru/arc/v2"

"github.com/scionproto/scion/pkg/private/serrors"
)

// Level1ARC maintains an Adaptative Replacement Cache, storing
// the necessary metadata to prefetch Level1 keys.
type Level1ARC struct {
cache *lru.ARCCache
cache *arc.ARCCache[Level1PrefetchInfo, struct{}]
}

// NewLevel1ARC returns a Level1ARC cache of a given size.
func NewLevel1ARC(size int) (*Level1ARC, error) {
cache, err := lru.NewARC(size)
cache, err := arc.NewARC[Level1PrefetchInfo, struct{}](size)
if err != nil {
return nil, serrors.WrapStr("creating Level1ARC cache", err)
}
Expand All @@ -47,7 +47,7 @@ func (c *Level1ARC) Update(keyPair Level1PrefetchInfo) {
func (c *Level1ARC) Info() []Level1PrefetchInfo {
list := []Level1PrefetchInfo{}
for _, k := range c.cache.Keys() {
lvl1Info := k.(Level1PrefetchInfo)
lvl1Info := k
list = append(list, lvl1Info)
}
return list
Expand Down
28 changes: 14 additions & 14 deletions control/mgmtapi/server.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions daemon/mgmtapi/server.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dispatcher/internal/registration/udptable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func TestUDPPortTableInsert(t *testing.T) {
_, lookupOk := table.Lookup(address)
SoMsg("err", err, ShouldBeNil)
SoMsg("address content", retAddress, ShouldResemble, address)
SoMsg("address not same object", retAddress, ShouldNotEqual, address)
SoMsg("address not same object", retAddress, ShouldNotPointTo, address)
SoMsg("lookup ok", lookupOk, ShouldBeTrue)
})
Convey("Inserting an IPv4 address with a 0 port returns an allocated port",
Expand All @@ -146,7 +146,7 @@ func TestUDPPortTableInsert(t *testing.T) {
_, lookupOk := table.Lookup(address)
SoMsg("err", err, ShouldBeNil)
SoMsg("address content", retAddress, ShouldResemble, address)
SoMsg("address not same object", retAddress, ShouldNotEqual, address)
SoMsg("address not same object", retAddress, ShouldNotPointTo, address)
SoMsg("lookup ok", lookupOk, ShouldBeTrue)
})
Convey("Inserting an IPv6 address with a 0 port returns an allocated port",
Expand Down
2 changes: 1 addition & 1 deletion doc/command/scion-pki/scion-pki_completion_zsh.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ to enable it. You can execute the following once:

To load completions in your current shell session:

source <(scion-pki completion zsh); compdef _scion-pki scion-pki
source <(scion-pki completion zsh)

To load completions for every new session, execute once:

Expand Down
2 changes: 1 addition & 1 deletion doc/command/scion/scion_completion_zsh.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ to enable it. You can execute the following once:

To load completions in your current shell session:

source <(scion completion zsh); compdef _scion scion
source <(scion completion zsh)

To load completions for every new session, execute once:

Expand Down
Loading

0 comments on commit 3f4629d

Please sign in to comment.