Skip to content

Commit 47a0cee

Browse files
committed
chore(daemon): fix shadowed var
1 parent 45ce97f commit 47a0cee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/daemon/daemon.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ func New(ctx context.Context, opts ...Option) (Daemon, error) {
6262
local.PutPrimaryPeerKey(cfg.Peer.PrivateKey)
6363

6464
// construct new network
65-
net := network.New(
65+
ntw := network.New(
6666
ctx,
6767
network.WithLocalPeer(local),
6868
)
6969

7070
if cfg.Peer.BindAddress != "" {
7171
// start listening
72-
lis, err := net.Listen(
72+
lis, err := ntw.Listen(
7373
ctx,
7474
cfg.Peer.BindAddress,
7575
network.ListenOnLocalIPs,
@@ -108,20 +108,20 @@ func New(ctx context.Context, opts ...Option) (Daemon, error) {
108108
// construct new resolver
109109
res := resolver.New(
110110
ctx,
111-
net,
111+
ntw,
112112
resolver.WithBoostrapPeers(bootstrapPeers...),
113113
)
114114

115115
// construct manager
116116
man := objectmanager.New(
117117
ctx,
118-
net,
118+
ntw,
119119
res,
120120
str,
121121
)
122122

123123
d.config = *cfg
124-
d.network = net
124+
d.network = ntw
125125
d.resolver = res
126126
d.localpeer = local
127127
d.objectstore = str

0 commit comments

Comments
 (0)