-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Ks/update nodes cs cleanup #15080
Ks/update nodes cs cleanup #15080
Conversation
9ab3e45
to
5cbf266
Compare
5cbf266
to
de7b7b0
Compare
return nil | ||
} | ||
|
||
type UpdateNodeCapabilitiesImplRequest struct { |
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.
rm dead code
type UpdateNodeCapabilitiesRequest = MutateNodeCapabilitiesRequest | ||
|
||
// MutateNodeCapabilitiesRequest is a request to change the capabilities of nodes in the registry | ||
type MutateNodeCapabilitiesRequest struct { |
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.
both update and append use the same form. unify and leverage type aliases
} | ||
} | ||
return out, nil | ||
} | ||
|
||
func NodeOperator(name string, adminAddress string) capabilities_registry.CapabilitiesRegistryNodeOperator { |
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.
refactor common util into func.
@@ -40,7 +41,7 @@ func (cs ContractSet) View() (view.KeystoneChainView, error) { | |||
return out, nil | |||
} | |||
|
|||
func GetContractSets(req *GetContractSetsRequest) (*GetContractSetsResponse, error) { | |||
func GetContractSets(lggr logger.Logger, req *GetContractSetsRequest) (*GetContractSetsResponse, error) { |
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.
better logging
Cleanup and simplify code. Extract funcs that are needed in
chainlink-deployment
. Fix typos, comment and adding logging