-
Notifications
You must be signed in to change notification settings - Fork 741
nits #2375
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
nits #2375
Conversation
@@ -1447,7 +1447,7 @@ func (s *state) loadCurrentValidators() error { | |||
} | |||
tx, _, err := s.GetTx(txID) | |||
if err != nil { | |||
return fmt.Errorf("failed loading validator transaction txID %v, %w", txID, err) | |||
return 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.
We don't wrap this elsewhere in this method (or this file)
@@ -136,7 +135,7 @@ func NextBlockTime(state state.Chain, clk *mockable.Clock) (time.Time, bool, err | |||
|
|||
nextStakerChangeTime, err := GetNextStakerChangeTime(state) | |||
if err != nil { | |||
return time.Time{}, false, fmt.Errorf("could not calculate next staker change time: %w", err) | |||
return time.Time{}, false, 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.
This should be wrapped by the caller since it's the only error that can be returned in this func
utils/logging/log.go
Outdated
@@ -67,7 +68,9 @@ func (l *log) Write(p []byte) (int, error) { | |||
// TODO: return errors here | |||
func (l *log) Stop() { | |||
for _, wc := range l.wrappedCores { | |||
_ = wc.Writer.Close() | |||
if wc.Writer != os.Stdout && wc.Writer != os.Stderr { |
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.
Can you explain this change?
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.
absorbed by #2335 |
No description provided.