Skip to content

Commit e58b956

Browse files
committed
Simplify example
1 parent f522e4a commit e58b956

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Ready to contribute? Here's how to set up `dike` for local development.
5858
4. Install dependencies and start your virtualenv:
5959

6060
```
61-
$ poetry install -E test -E doc -E dev
61+
$ poetry install --with=test,doc,dev
6262
```
6363

6464
5. Create a branch for local development:

README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,7 @@ async def main():
9090
responses = await asyncio.gather(call1, call2, call3, return_exceptions=True)
9191
# Print the responses
9292
for r in responses:
93-
if isinstance(r, dike.TooManyCalls):
94-
print("too many calls")
95-
else:
96-
print(r)
93+
print(r)
9794

9895

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

109106
### Mini-batching for asynchronous function calls

0 commit comments

Comments
 (0)