|
|
@ -66,7 +66,7 @@ func StartTransfer(prometheusPort int) error {
|
|
|
|
if err := client.CreateRpcRootNodes(config.Config.GetServiceNames()); err != nil {
|
|
|
|
if err := client.CreateRpcRootNodes(config.Config.GetServiceNames()); err != nil {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
client.AddOption(mw.GrpcClient(), grpc.WithTransportCredentials(insecure.NewCredentials()))
|
|
|
|
client.AddOption(mw.GrpcClient(), grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithDefaultServiceConfig(fmt.Sprintf(`{"LoadBalancingPolicy": "%s"}`, "round_robin")))
|
|
|
|
msgModel := cache.NewMsgCacheModel(rdb)
|
|
|
|
msgModel := cache.NewMsgCacheModel(rdb)
|
|
|
|
msgDocModel := unrelation.NewMsgMongoDriver(mongo.GetDatabase())
|
|
|
|
msgDocModel := unrelation.NewMsgMongoDriver(mongo.GetDatabase())
|
|
|
|
msgDatabase := controller.NewCommonMsgDatabase(msgDocModel, msgModel)
|
|
|
|
msgDatabase := controller.NewCommonMsgDatabase(msgDocModel, msgModel)
|
|
|
|