Page MenuHomeSoftware Heritage

api/server: fix the add_stream endpoint
ClosedPublic

Authored by douardda on Mar 19 2019, 11:44 AM.

Details

Summary

since received chunks must be decoded one at a time.

also replace asyncio coroutines by native ones

Diff Detail

Repository
rDOBJS Object storage
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

also replace asyncio coroutines by native ones

Aren't these only available starting with python 3.7?

nvm, 3.7 makes them keyword, but this syntax is valid in 3.5 too.

This revision is now accepted and ready to land.Mar 19 2019, 12:08 PM
This revision was automatically updated to reflect the committed changes.