-
Notifications
You must be signed in to change notification settings - Fork 18
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
Wrapped all ErrSendingRequest #409
Conversation
process/nodeStatusProcessor.go
Outdated
@@ -475,8 +475,8 @@ func (nsp *NodeStatusProcessor) GetGasConfigs() (*data.GenericAPIResponse, error | |||
return nil, err | |||
} | |||
|
|||
var responseGenesisNodesConfig data.GenericAPIResponse |
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.
rename to responseGasConfigs or something similar
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.
renamed
process/nodeGroupProcessor.go
Outdated
return false, ErrSendingRequest | ||
return false, fmt.Errorf("%w, %s", ErrSendingRequest, apiResponse.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.
wrap also error in line 82?
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.
not needed
Wrapped all errors for more details on response, when all observers return error(previously, simply
sending request error
was returned).Some testing scenarios: