-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
metaVolumes for #496 #631
metaVolumes for #496 #631
Conversation
return PrefixChooser( | ||
identityRepository, | ||
{ createNewPrefix(identity, boxClient, identityRepository) }, | ||
{ prefix -> hasIndex(identity, prefix, type) }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using named parameters for this would make it more readable. This way I have to know which callback should do what
Make this a default parameter, on android we have to inject the temp directories |
= { prefix -> BlockReadBackend("$blockUri/api/v0/files/$prefix/", boxClient) }, | ||
val writeBackendFactory: (String) -> StorageWriteBackend | ||
= { prefix -> BlockWriteBackend("$blockUri/api/v0/files/$prefix/", boxClient) } | ||
) : AbstractBoxVolumeFactory(boxClient, identityRepository, directoryFactory) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed
return PrefixChooser( | ||
identityRepository, | ||
{ createNewPrefix(identity, boxClient, identityRepository) }, | ||
{ prefix -> hasIndex(identity, prefix, type) }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed
includes the new box prefix choosing algorithm:
Prefixes are chosen separately for the types USER and CLIENT