Page MenuHomeSoftware Heritage

listener: Release the db object after using it
ClosedPublic

Authored by olasd on May 7 2019, 6:17 PM.

Details

Summary

This is the contract that get_db/put_db is supposed to conform to.

Test Plan

tox is still happy; we can process more than ten pending messages at once

Diff Detail

Repository
rDSCH Scheduling utilities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

It should probably be in a finally block.

Less improper database exception handling

This revision is now accepted and ready to land.May 10 2019, 3:52 PM
This revision was automatically updated to reflect the committed changes.