-
Notifications
You must be signed in to change notification settings - Fork 161
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: Client implementation #1888
Conversation
defer cancel() | ||
|
||
queryResponse, err := c.OracleQueryClient().Params(ctx, &oracletypes.QueryParams{}) | ||
return queryResponse.Params, err |
Check warning
Code scanning / CodeQL
Missing error check
defer cancel() | ||
|
||
queryResponse, err := c.OracleQueryClient().ExchangeRates(ctx, &oracletypes.QueryExchangeRates{}) | ||
return queryResponse.ExchangeRates, err |
Check warning
Code scanning / CodeQL
Missing error check
defer cancel() | ||
|
||
resp, err := c.OracleQueryClient().Medians(ctx, &oracletypes.QueryMedians{}) | ||
return resp.Medians, err |
Check warning
Code scanning / CodeQL
Missing error check
defer cancel() | ||
|
||
queryResponse, err := c.OracleQueryClient().MedianDeviations(ctx, &oracletypes.QueryMedianDeviations{}) | ||
return queryResponse.MedianDeviations, err |
Check warning
Code scanning / CodeQL
Missing error check
HeightChanged: make(chan int64), | ||
} | ||
|
||
go chainHeight.subscribe(ctx, rpcClient, newBlockHeaderSubscription) |
Check notice
Code scanning / CodeQL
Spawning a Go routine
Should fix those missing error checks - they'll lead to panics on (for example) |
Yes, will look at this nil checks tomorrow. However this should not block the review. |
up, waiting for review |
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 like what you did with cleaning up the encoding and separating the two Clients. Just a couple naming nit picks. I look forward to pulling this into its own package!
Description
Closes: #1878
Concept: