Fix: policy should be re-dispatch while getting thumbnails

This commit is contained in:
HFO4
2020-01-02 13:10:04 +08:00
parent a75be3a927
commit b6102c3ae5
10 changed files with 111 additions and 14 deletions

View File

@@ -146,6 +146,8 @@ func (fs *FileSystem) dispatchHandler() error {
// 根据存储策略类型分配适配器
switch policyType {
case "mock":
return nil
case "local":
fs.Handler = local.Handler{
Policy: currentPolicy,