You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.
The entire interface to sub-storage depends on client and at. alternatively, sub-storage could create its own internal client. The user would have to call into sub_storage::init_client(URI).await once and henceforth it would be used.
I am not yet sure if this is a correct api design as well, but it is indeed easier.
This would allow us to macro-ify the crate as well, such as:
The entire interface to sub-storage depends on
client
andat
. alternatively, sub-storage could create its own internal client. The user would have to call intosub_storage::init_client(URI).await
once and henceforth it would be used.I am not yet sure if this is a correct api design as well, but it is indeed easier.
This would allow us to macro-ify the crate as well, such as:
Which is not really pretty now given that we have to pass in a client inwards as well.
The text was updated successfully, but these errors were encountered: