未验证 提交 ae7b7cb4 编写于 作者: W Wjie 提交者: GitHub

Rename the var which conflict with the libary 'fmt' (#36)

上级 f92d223b
......@@ -53,12 +53,12 @@ func fixObjectSize(s int) int {
return s
}
func createStorage(fmt *meta.Format) (object.ObjectStorage, error) {
blob, err := object.CreateStorage(strings.ToLower(fmt.Storage), fmt.Bucket, fmt.AccessKey, fmt.SecretKey)
func createStorage(format *meta.Format) (object.ObjectStorage, error) {
blob, err := object.CreateStorage(strings.ToLower(format.Storage), format.Bucket, format.AccessKey, format.SecretKey)
if err != nil {
return nil, err
}
return object.WithPrefix(blob, fmt.Name+"/")
return object.WithPrefix(blob, format.Name+"/")
}
var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册