error properly when lbcd fails to connect in HTTP POST mode #99
No reviewers
Labels
No labels
ci
claimtrie
consider soon
Epic
good first issue
hacktoberfest
help wanted
mempool
mining
peer
priority: blocker
priority: high
priority: low
priority: medium
rpc
runtime
test
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
ux
wallet
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbcd#99
Loading…
Reference in a new issue
No description provided.
Delete branch "connection-failure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
in the case where you're e.g. trying to connect to an invalid address, the err vars in
handleSendPostMessage()
were being shadowed inside the for loop. ifc.httpClient.Do()
returned an error, that error never got returned upstream. thenioutil.ReadAll(httpResponse.Body)
would get a nil pointer dereference.this fixes that case.
Pull Request Test Coverage Report for Build 3252072246
💛 - Coveralls
LGTM, thx.