mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +08:00
test
This commit is contained in:
parent
6e049890aa
commit
88e23f3e4a
@ -17,7 +17,6 @@ package third
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/OpenIMSDK/tools/log"
|
||||
"net/url"
|
||||
"time"
|
||||
|
||||
@ -41,8 +40,6 @@ import (
|
||||
)
|
||||
|
||||
func Start(config *config.GlobalConfig, client discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error {
|
||||
log.ZDebug(context.Background(), "config19999999999999999999999999999999999", config, "javadfdas")
|
||||
|
||||
mongo, err := unrelation.NewMongo(config)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -73,7 +70,7 @@ func Start(config *config.GlobalConfig, client discoveryregistry.SvcDiscoveryReg
|
||||
// 根据配置文件策略选择 oss 方式
|
||||
enable := config.Object.Enable
|
||||
var o s3.Interface
|
||||
switch config.Object.Enable {
|
||||
switch enable {
|
||||
case "minio":
|
||||
o, err = minio.NewMinio(cache.NewMinioCache(rdb), minio.Config(config.Object.Minio))
|
||||
case "cos":
|
||||
|
||||
@ -67,6 +67,7 @@ type Config struct {
|
||||
}
|
||||
|
||||
func NewMinio(cache cache.MinioCache, conf Config) (s3.Interface, error) {
|
||||
fmt.Printf("minio config: %+v", conf)
|
||||
u, err := url.Parse(conf.Endpoint)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user