Skip to content

Commit

Permalink
Merge pull request #543 from hanzhixiao/fix/v3-error2
Browse files Browse the repository at this point in the history
fix conflict
  • Loading branch information
cubxxw authored Jul 13, 2023
2 parents c6203c8 + 4bd9714 commit ab406be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion cmd/openim-api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func startPprof() {
}

func run(port int) error {
port = 10002
if port == 0 {
return fmt.Errorf("port is empty")
}
Expand Down
6 changes: 3 additions & 3 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ zookeeper:
password: #密码

mysql:
address: [ 127.0.0.1:3306 ] #目前仅支持单机
address: [ 127.0.0.1:13306 ] #目前仅支持单机
username: root #用户名
password: #密码
password: openIM123 #密码
database: openIM_v3 #不建议修改
maxOpenConn: 1000 #最大连接数
maxIdleConn: 100 #最大空闲连接数
Expand All @@ -42,7 +42,7 @@ mongo:
maxPoolSize: 100

redis:
address: [ 127.0.0.1:6379 ] #
address: [ 127.0.0.1:16379 ] #
username: #only redis version 6.0+ need username
password: openIM123 #密码

Expand Down
1 change: 0 additions & 1 deletion pkg/common/cmd/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func (a *RpcCmd) StartSvr(
name string,
rpcFn func(discov discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error,
) error {
a.port = 10030
if a.GetPortFlag() == 0 {
return errors.New("port is required")
}
Expand Down

0 comments on commit ab406be

Please sign in to comment.