diff --git a/pkg/network/cache/multi.go b/pkg/network/cache/multi.go index 0ec48fb7f..792863bd6 100644 --- a/pkg/network/cache/multi.go +++ b/pkg/network/cache/multi.go @@ -252,7 +252,8 @@ func (x *multiClient) client(addr network.Address) (clientcore.Client, error) { c, cached = x.clients[strAddr] if !cached { - c, err := x.createForAddress(addr) + var err error + c, err = x.createForAddress(addr) if err != nil { return nil, err }