Skip to content

Commit

Permalink
Merge pull request #72 from chr1st1ank/fix-doctests
Browse files Browse the repository at this point in the history
Fix documentation examples
  • Loading branch information
chr1st1ank committed Dec 19, 2022
2 parents f522e4a + e58b956 commit eb32f5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Ready to contribute? Here's how to set up `dike` for local development.
4. Install dependencies and start your virtualenv:

```
$ poetry install -E test -E doc -E dev
$ poetry install --with=test,doc,dev
```

5. Create a branch for local development:
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ async def main():
responses = await asyncio.gather(call1, call2, call3, return_exceptions=True)
# Print the responses
for r in responses:
if isinstance(r, dike.TooManyCalls):
print("too many calls")
else:
print(r)
print(r)


asyncio.run(main())
Expand All @@ -103,7 +100,7 @@ The output shows that the first two requests succeed. The third one hits the con
```
<Response [200 OK]>
<Response [200 OK]>
too many calls
Too many calls to function web_request! limit=2 exceeded
```

### Mini-batching for asynchronous function calls
Expand Down

0 comments on commit eb32f5a

Please sign in to comment.