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

Rpc options #278

Merged
merged 5 commits into from
May 7, 2024
Merged

Rpc options #278

merged 5 commits into from
May 7, 2024

Conversation

najeal
Copy link
Contributor

@najeal najeal commented May 4, 2024

Why this should be merged

Adding http-headers for p-chain and info-api clients.
Related to #186

How this works

Use mechanism introduced in #268 to pass http-headers to p-chain & info-api clients.

How this was tested

How is this documented

Details of the new Config fields are added in the README.

Copy link
Collaborator

@cam-schultz cam-schultz left a comment

Choose a reason for hiding this comment

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

Just have a few small comments. Thank you for putting this together!

@@ -1,5 +1,3 @@
//go:build testing
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please keep this tag in this file. This file is only used in unit tests, so we use the tag to exclude this file from release builds.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
najeal and others added 2 commits May 5, 2024 22:35
change http into HTTP

Co-authored-by: cam-schultz <[email protected]>
Signed-off-by: nathan haim <[email protected]>
cam-schultz
cam-schultz previously approved these changes May 6, 2024
geoff-vball
geoff-vball previously approved these changes May 6, 2024
Copy link
Collaborator

@michaelkaplan13 michaelkaplan13 left a comment

Choose a reason for hiding this comment

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

Thanks for making this changes, just one small suggestion

@najeal
Copy link
Contributor Author

najeal commented May 6, 2024

@michaelkaplan13 it looks like you forgot the suggestion 🙂

config/config.go Outdated
@@ -126,6 +126,7 @@ type WarpQuorum struct {
type APIConfig struct {
BaseURL string `mapstructure:"base-url" json:"base-url"`
QueryParams map[string]string `mapstructure:"query-parameters" json:"query-parameters"`
HttpHeaders map[string]string `mapstructure:"http-headers" json:"http-headers"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Following golang capitalization conventions, lets make this HTTPHeaders.

@michaelkaplan13
Copy link
Collaborator

Thanks for making this changes, just one small suggestion

My bad! forgot to hit submit

@najeal najeal dismissed stale reviews from geoff-vball and cam-schultz via 8e2ce12 May 6, 2024 20:36
@michaelkaplan13 michaelkaplan13 merged commit c6f8eeb into ava-labs:main May 7, 2024
3 checks passed
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.

4 participants