Skip to content
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

fix for mirror window consumer #1264

Merged
merged 5 commits into from
Jun 6, 2019
Merged

fix for mirror window consumer #1264

merged 5 commits into from
Jun 6, 2019

Conversation

invisig0th
Copy link
Contributor

No description provided.

@@ -842,7 +841,7 @@ class Cortex(s_cell.Cell):
await layr.setOffset(layr.iden, items[-1][0])

except asyncio.CancelledError: # pragma: no cover
raise
return
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is the main function for the coroutine, catching and handling CancelledError is ok here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't matter either way since schedCoro will swallow the cancellederror

@codecov
Copy link

codecov bot commented Jun 6, 2019

Codecov Report

Merging #1264 into master will increase coverage by 0.03%.
The diff coverage is 92.3%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1264      +/-   ##
==========================================
+ Coverage   94.24%   94.27%   +0.03%     
==========================================
  Files         126      126              
  Lines       16620    16620              
==========================================
+ Hits        15664    15669       +5     
+ Misses        956      951       -5
Impacted Files Coverage Δ
synapse/lib/node.py 97.73% <ø> (-0.01%) ⬇️
synapse/lib/lmdblayer.py 89.7% <100%> (+0.29%) ⬆️
synapse/lib/slabseqn.py 95.77% <100%> (+1.33%) ⬆️
synapse/cortex.py 92.22% <100%> (ø) ⬆️
synapse/lib/layer.py 89.7% <85.71%> (+1.64%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d0f9c1f...eb9baa6. Read the comment docs.

jnwatson
jnwatson previously approved these changes Jun 6, 2019
@@ -842,7 +841,7 @@ class Cortex(s_cell.Cell):
await layr.setOffset(layr.iden, items[-1][0])

except asyncio.CancelledError: # pragma: no cover
raise
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't matter either way since schedCoro will swallow the cancellederror

@vEpiphyte vEpiphyte added this to the v0.1.11 milestone Jun 6, 2019
@vEpiphyte vEpiphyte added the bug label Jun 6, 2019
@vEpiphyte vEpiphyte merged commit 40c61d7 into master Jun 6, 2019
@vEpiphyte vEpiphyte deleted the visi-fix-mirror branch June 6, 2019 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants