radicle: Load inventory lazily
Instead of loading the inventory cache on storage open, load it
when the inventory function is called and the list is empty.
I chose not to add an extra flag or Option, which means that if
the storage is actually empty, it’ll be reloaded everytime, but since
loading an empty inventory is basically free, that’s ok.
Instead of loading the inventory cache on storage open, load it
when the inventory function is called and the list is empty.
I chose not to add an extra flag or Option, which means that if
the storage is actually empty, it’ll be reloaded everytime, but since
loading an empty inventory is basically free, that’s ok.
New design.
Clippy.