Skip to content
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

Merged
merged 12 commits into from
Nov 5, 2024
Merged

Ks/update nodes cs cleanup #15080

merged 12 commits into from
Nov 5, 2024

Conversation

krehermann
Copy link
Contributor

@krehermann krehermann commented Nov 1, 2024

Cleanup and simplify code. Extract funcs that are needed in chainlink-deployment. Fix typos, comment and adding logging

@krehermann krehermann force-pushed the ks/update-nodes-cs-cleanup branch from 9ab3e45 to 5cbf266 Compare November 1, 2024 22:10
@krehermann krehermann force-pushed the ks/update-nodes-cs-cleanup branch from 5cbf266 to de7b7b0 Compare November 4, 2024 18:33
return nil
}

type UpdateNodeCapabilitiesImplRequest struct {
Copy link
Contributor Author

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

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

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

Choose a reason for hiding this comment

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

better logging

@krehermann krehermann marked this pull request as ready for review November 5, 2024 00:34
@krehermann krehermann requested review from a team as code owners November 5, 2024 00:34
@krehermann krehermann enabled auto-merge November 5, 2024 02:50
@krehermann krehermann added this pull request to the merge queue Nov 5, 2024
Merged via the queue into develop with commit 5528a21 Nov 5, 2024
141 checks passed
@krehermann krehermann deleted the ks/update-nodes-cs-cleanup branch November 5, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants