-
Notifications
You must be signed in to change notification settings - Fork 3
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
Added executors - part 1 #12
Conversation
iulianpascalau
commented
May 7, 2024
- added executors - part 1
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.
👍
executors/errors.go
Outdated
var ( | ||
errNilRatingsChecker = errors.New("nil ratings checker instance") | ||
errNilOutputNotifier = errors.New("nil output notifier") | ||
errNilValidatorStatisticsQuerier = errors.New("nil output notifier") |
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.
change error message
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.
done
executors/blsKeysExecutor.go
Outdated
} | ||
|
||
func shortIdentifier(identifier string) string { | ||
if len(identifier) <= 15 { |
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.
maybe you can add a const for this magic number
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.
refactored
executors/blsKeysExecutor.go
Outdated
return identifier | ||
} | ||
|
||
return identifier[:6] + "..." + identifier[len(identifier)-6:] |
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.
also here
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.
refactored