feat(storage): compat for cos

This commit is contained in:
neo-f
2023-03-23 22:32:19 +08:00
parent 2d3cf0857a
commit 50713cdbd8
3 changed files with 17 additions and 16 deletions

View File

@@ -11,10 +11,10 @@ import (
var (
storageOnce sync.Once
storageInstance *storage.StorageMinio
storageInstance *storage.Storage
)
func GetStorage() *storage.StorageMinio {
func GetStorage() *storage.Storage {
storageOnce.Do(initMinio)
return storageInstance
}