Skip to content

Commit

Permalink
[release-v1.7] addrmgr: Support module graph prune and lazy load.
Browse files Browse the repository at this point in the history
This bumps the go directive for the addrmgr module to 1.17 which will allow
the new module graph pruning and lazy loading capabilities introduced in
Go 1.17 to be used once the updated modules are released.

This means that, as described by the documentation, the go.mod file for
the module now include a separate require block that includes all of the
indirect dependencies.
  • Loading branch information
davecgh committed Apr 7, 2023
1 parent 16bf7dc commit 2352339
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addrmgr/addrmanager_test.go
Expand Up @@ -76,7 +76,7 @@ func TestStartStop(t *testing.T) {
wantNetAddrKey := net.JoinHostPort(someIP, "8333")
gotNetAddrKey := knownAddress.na.Key()
if gotNetAddrKey != wantNetAddrKey {
t.Fatal("address manager does not contain expected address - "+
t.Fatalf("address manager does not contain expected address - "+
"got %v, want %v", gotNetAddrKey, wantNetAddrKey)
}

Expand Down
4 changes: 3 additions & 1 deletion addrmgr/go.mod
@@ -1,9 +1,11 @@
module github.com/decred/dcrd/addrmgr/v2

go 1.16
go 1.17

require (
github.com/decred/dcrd/chaincfg/chainhash v1.0.3
github.com/decred/dcrd/wire v1.5.0
github.com/decred/slog v1.2.0
)

require github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect

0 comments on commit 2352339

Please sign in to comment.