-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat: add interceptors for http and graphql client to support multiple subgraph api keys #669
base: main
Are you sure you want to change the base?
Conversation
Test coverage changes:
|
9c9f537
to
9cc5946
Compare
1166e3a
to
2049ee5
Compare
2049ee5
to
95d706c
Compare
} | ||
|
||
func NewPoolsListUpdater( | ||
cfg *Config, | ||
graphqlClient *graphqlpkg.Client, | ||
graphqlClientCfg *graphqlpkg.Config, |
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.
I don't see this graphqlClientCfg
being used anywhere in this file
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.
oh, graphqlClient
is initialized with config from pool-service. I removed redundant code
|
||
var response struct { | ||
Pools []SubgraphPool `json:"pools"` | ||
} | ||
|
||
if err := d.graphqlClient.Run(ctx, req, &response); err != nil { | ||
if err, _ := d.graphqlClient.Run(ctx, req, &response); err != nil { |
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.
"github.com/pkg/errors" | ||
) | ||
|
||
type IClient interface { |
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.
Is this interface complete with all the required methods ?
Why did we need it?
Related Issue
Release Note
How Has This Been Tested?
Screenshots (if appropriate):