Skip to content

light: correctly handle contexts (backport -> v0.34.x)#6685

Merged
cmwaters merged 8 commits intov0.34.xfrom
callum/snapshots
Jul 9, 2021
Merged

light: correctly handle contexts (backport -> v0.34.x)#6685
cmwaters merged 8 commits intov0.34.xfrom
callum/snapshots

Conversation

@cmwaters
Copy link
Copy Markdown
Contributor

@cmwaters cmwaters commented Jul 9, 2021

This PR allows cancelling contexts or using deadlines to actually work. When state sync was using the light client there were occasions where getting the AppHash was taking longer than 10 seconds and so the deadline was getting exceeded but because the light client didn't handle this error properly, it would actually get stuck.

@cmwaters cmwaters changed the title light: correctly handle contexts light: correctly handle contexts (backport -> v0.34.x) Jul 9, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 9, 2021

Codecov Report

❗ No coverage uploaded for pull request base (v0.34.x@8b84c7c). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             v0.34.x    #6685   +/-   ##
==========================================
  Coverage           ?   60.52%           
==========================================
  Files              ?      265           
  Lines              ?    24323           
  Branches           ?        0           
==========================================
  Hits               ?    14721           
  Misses             ?     8070           
  Partials           ?     1532           

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants