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
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 5680
Build 7756: tox-on-jenkinsJenkins
Build 7755: arc lint + arc unit

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.