simona
simona copied to clipboard
Simplify initialization of PrimaryServiceWorker
PrimaryServiceProxy#toInitData
unpacks source-related primary config and re-packages it into an InitPrimaryServiceStateData
, which is then unpacked in PrimaryServiceWorker#init
again. This seems a bit unnecessary.
One could take WeatherSource#apply
as an example, where configs are turned into WeatherSourceWrappers
directly.
This becomes more relevant once #34 is implemented.