Page MenuHomeSoftware Heritage

api: make backend_factory argument of RPCServerApp() optional

Authored by douardda on Wed, Oct 9, 5:39 PM.



defaults to calling the backend_class constructor.

Depends on D2104

Diff Detail

rDCORE Foundations and core functionalities
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda created this revision.Wed, Oct 9, 5:39 PM
vlorentz requested changes to this revision.Wed, Oct 9, 5:49 PM
vlorentz added a subscriber: vlorentz.

Should be documented

This revision now requires changes to proceed.Wed, Oct 9, 5:49 PM

and the type in the doc of backend_class should use Optional[] too

douardda updated this revision to Diff 7092.Thu, Oct 10, 4:21 PM

Update the docstring

vlorentz accepted this revision.Fri, Oct 11, 10:35 AM
This revision is now accepted and ready to land.Fri, Oct 11, 10:35 AM