fix: fix the comflect

This commit is contained in:
luhaoling 2024-02-02 15:24:22 +08:00
commit 3ecac7600b
2 changed files with 3 additions and 2 deletions

View File

@ -16,10 +16,11 @@ package rpcclient
import ( import (
"context" "context"
"net/url"
"github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials" "github.com/minio/minio-go/v7/pkg/credentials"
"google.golang.org/grpc" "google.golang.org/grpc"
"net/url"
"github.com/OpenIMSDK/protocol/third" "github.com/OpenIMSDK/protocol/third"
"github.com/OpenIMSDK/tools/discoveryregistry" "github.com/OpenIMSDK/tools/discoveryregistry"

View File

@ -28,6 +28,7 @@ import (
"github.com/OpenIMSDK/tools/component" "github.com/OpenIMSDK/tools/component"
"github.com/OpenIMSDK/tools/errs" "github.com/OpenIMSDK/tools/errs"
"github.com/openimsdk/open-im-server/v3/pkg/common/config" "github.com/openimsdk/open-im-server/v3/pkg/common/config"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
@ -141,7 +142,6 @@ func checkZookeeper() error {
// checkKafka checks the Kafka connection // checkKafka checks the Kafka connection
func checkKafka() error { func checkKafka() error {
// Prioritize environment variables // Prioritize environment variables
kafkaStu := &component.Kafka{ kafkaStu := &component.Kafka{
Username: config.Config.Kafka.Username, Username: config.Config.Kafka.Username,