New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: node start up to continue on bootstrapper error #2910
Conversation
pkg/node/node.go
Outdated
if err != nil { | ||
return nil, fmt.Errorf("bootstrapper failed to fetch batch state: %w", err) | ||
logger.Errorf("bootstrapper failed to fetch batch state: %w", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace %w
with %v
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questioning "bootstrapper" as being incorrect/misleading?
@@ -479,9 +479,9 @@ func NewBee(addr string, publicKey *ecdsa.PublicKey, signer crypto.Signer, netwo | |||
libp2pPrivateKey, | |||
o, | |||
) | |||
logger.Infof("bootstrapper done, took %s", time.Since(start)) | |||
logger.Infof("bootstrapper took %s", time.Since(start)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be bootstrapper or BatchState initialization?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tend to agree that bootstrapper
is hard to understand without context. My suggestion would be postage snapshot syncing took %s
because that would be consistent how the feature is called in the config (use-postage-snapshot
).
if err != nil { | ||
return nil, fmt.Errorf("bootstrapper failed to fetch batch state: %w", err) | ||
logger.Errorf("bootstrapper failed to fetch batch state: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto here.
Checklist
Description
Motivation and context (Optional)
Related Issue (Optional)
Screenshots (if appropriate):
This change is