File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,11 @@ func getStorageSection(rootCfg ConfigProvider) *ini.Section {
47
47
}
48
48
49
49
// getStorage will read storage configurations from 4 possible ways
50
- // 1 read configurations from [$name] if the item exist
51
- // 2 read configurations from [storage.$name] if the item exist
52
- // 3 read configurations from [storage.$typ] if the item exist
53
- // 4 read configurations from [storage] if the item exist
50
+ // 1 read configurations from [$name] if the setting keys exist (eg: name="attachments")
51
+ // 2 read configurations from [storage.$name] if the keys exist
52
+ // 3 read configurations from [storage.$type] if the keys exist (eg: type="local" or "minio")
53
+ // 4 read configurations from [storage] if the keys exist
54
+ // The keys in earlier section have higher priority.
54
55
func getStorage (rootCfg ConfigProvider , name , typ string , targetSec * ini.Section ) Storage {
55
56
if targetSec == nil {
56
57
targetSec , _ = rootCfg .NewSection (name )
You can’t perform that action at this time.
0 commit comments