mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 19:02:31 +08:00
fix: add return err
This commit is contained in:
parent
ddac6fe7c7
commit
ba5c4221eb
@ -56,7 +56,10 @@ const (
|
|||||||
func NewAWS() (s3.Interface, error) {
|
func NewAWS() (s3.Interface, error) {
|
||||||
configGlobal := config.NewGlobalConfig()
|
configGlobal := config.NewGlobalConfig()
|
||||||
|
|
||||||
config.InitConfig(configGlobal, "../../config")
|
err := config.InitConfig(configGlobal, "../../config")
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
conf := configGlobal.Object.Aws
|
conf := configGlobal.Object.Aws
|
||||||
credential := credentials.NewStaticCredentials(
|
credential := credentials.NewStaticCredentials(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user