Skip to content

Commit

Permalink
fix: meta retry (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
kqzh authored Jan 15, 2024
1 parent b8de5de commit c5d7870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ccore/nebula/client_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ func (c *defaultMetaClient) openRetry(driver types.Driver) error {
_ = c.meta.close()

err := c.meta.open(driver)
c.meta.connection.UpdateNextIndex() // update nextIndex every time
if err == nil {
return nil
}
c.meta.connection.UpdateNextIndex() // update nextIndex when connect failed
}
return nerrors.ErrNoValidMetaEndpoint
}

0 comments on commit c5d7870

Please sign in to comment.