Skip to content

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

Closed
wants to merge 4 commits into from
Closed

nits #2375

wants to merge 4 commits into from

Conversation

dhrubabasu
Copy link
Contributor

No description provided.

@@ -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
Copy link
Contributor Author

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
Copy link
Contributor Author

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

@@ -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 {

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was part of the merge conflict resolution. The only real change in this PR is 3298693

This change in particular originated from #2372

@abi87
Copy link
Contributor

abi87 commented Nov 28, 2023

absorbed by #2335

@abi87 abi87 closed this Nov 28, 2023
@dhrubabasu dhrubabasu deleted the post_durango_nits_0_dhruba branch November 28, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants