Page MenuHomeSoftware Heritage

api/server: Do not read configuration at each request
ClosedPublic

Authored by ardumont on Feb 13 2019, 11:55 PM.

Diff Detail

Repository
rDSTO Storage manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ardumont added inline comments.
swh/storage/api/server.py
394

Not sure if there is a way to actually extract this in swh.core.

The default_config_path could possibly go away (to remove yet again the implicit configuration).

The unsure stuff is about the global here.
My mind tells me to go check closure and global but not right now ;)

This revision is now accepted and ready to land.Feb 14 2019, 9:43 AM
This revision was automatically updated to reflect the committed changes.