mirror of https://github.com/status-im/consul.git
fix: shadowed err in retryJoin() (#14112)
- err value will be used later to surface the error message if r.join() returns any err.
This commit is contained in:
parent
79c23a7cd2
commit
11e7a0d547
|
@ -226,7 +226,8 @@ func (r *retryJoiner) retryJoin() error {
|
|||
for {
|
||||
addrs := retryJoinAddrs(disco, r.variant, r.cluster, r.addrs, r.logger)
|
||||
if len(addrs) > 0 {
|
||||
n, err := r.join(addrs)
|
||||
n := 0
|
||||
n, err = r.join(addrs)
|
||||
if err == nil {
|
||||
if r.variant == retryJoinMeshGatewayVariant {
|
||||
r.logger.Info("Refreshing mesh gateways completed")
|
||||
|
|
Loading…
Reference in New Issue