-
Notifications
You must be signed in to change notification settings - Fork 324
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
return keys for function States #4311
Conversation
state/iterator.go
Outdated
return &iterator{index: 0, states: states} | ||
func NewIterator(keys [][]byte, states [][]byte) (Iterator, error) { | ||
if len(keys) != len(states) { | ||
fmt.Println(string(debug.Stack())) |
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 use errors.Wrap to wrap func call stack into err
state/factory/workingsetstore.go
Outdated
values = append(values, value) | ||
} | ||
} else { | ||
ks = make([][]byte, 0, len(keys)) |
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.
no need, already defined at L187
Quality Gate passedIssues Measures |
return keys, which may be useful if input
keys = nil
Fixes #(issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: