Skip to content

Commit

Permalink
Upgrade anyio to 2.0.0b1
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwestcott committed Aug 17, 2020
1 parent f0bb2b5 commit a853f2d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
16 changes: 7 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "runnel"
version = "0.1.0-alpha.2"
version = "0.1.0a2"
description = "Distributed event processing for Python based on Redis Streams"
authors = ["Matt Westcott <[email protected]>"]
license = "LGPLv3"
Expand All @@ -16,8 +16,7 @@ colorama = "^0.4.3"
aiostream = "^0.4.1"
croniter = "^0.3.34"
pytz = "^2020.1"
# XXX: Temporarily using master until v2.0 released
anyio = {git = "https://github.com/agronholm/anyio.git", branch = "master"}
anyio = { version = "^2.0.0-beta.1", allow-prereleases = true }

# For the 'fast' bundle
uvloop = { version = "^0.14.0", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion runnel/middleware/take.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def _consume(self, receive_stream):
for _ in range(self.n):
try:
batch.append(await receive_stream.receive_nowait())
except anyio.exceptions.WouldBlock:
except anyio.WouldBlock:
logger.debug("took-too-few", have=len(batch), wanted=self.n)
break
logger.debug("take-consumed", batch=[e.data for e in batch])
Expand Down

1 comment on commit a853f2d

@vercel
Copy link

@vercel vercel bot commented on a853f2d Aug 17, 2020

Choose a reason for hiding this comment

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

Please sign in to comment.