Skip to content

Commit 3cba62a

Browse files
committed
Optimizing code
1 parent ad99ff3 commit 3cba62a

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
### 3.功能
3535

3636
* 网关:支持tcp、kcp、ws等协议的网关服务器。
37-
* 日志:支持std、zap、logrus、aliyun、tencent等多种日志组件。
37+
* 日志:支持console、file、aliyun、tencent等多种日志组件。
3838
* 注册:支持consul、etcd、nacos等多种服务注册中心。
3939
* 协议:支持json、protobuf、msgpack等多种通信协议。
4040
* 配置:支持consul、etcd、nacos等多种配置中心;并支持json、yaml、toml、xml等多种文件格式。
@@ -52,7 +52,7 @@
5252

5353
### 4.下一期新功能规划
5454

55-
* 高性能日志库
55+
* 分布式任务调度系统
5656

5757
### 5.特殊说明
5858

@@ -653,8 +653,8 @@ throughput (TPS) : 128969
653653
* consul: github.com/dobyte/due/registry/consul/v2
654654
* nacos: github.com/dobyte/due/registry/nacos/v2
655655
4. 传输组件
656-
* grpc: github.com/dobyte/due/transporter/grpc/v2
657-
* rpcx: github.com/dobyte/due/transporter/rpcx/v2
656+
* grpc: github.com/dobyte/due/transport/grpc/v2
657+
* rpcx: github.com/dobyte/due/transport/rpcx/v2
658658
5. 定位组件
659659
* redis: github.com/dobyte/due/locate/redis/v2
660660
6. 事件总线

core/info/info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const (
2727
leftBottomBorder = "└"
2828
rightBottomBorder = "┘"
2929
website = "https://github.com/dobyte/due"
30-
version = "v2.3.2"
30+
version = "v2.3.3"
3131
global = "Global"
3232
)
3333

log/log.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ func SetLogger(logger Logger) {
1212
return
1313
}
1414

15+
if globalLogger != nil {
16+
globalLogger.Close()
17+
}
18+
1519
globalLogger = logger
1620
}
1721

transport/rpcx/internal/server/server.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ import (
1212
const scheme = "rpcx"
1313

1414
type Server struct {
15-
listenAddr string
16-
exposeAddr string
17-
server *server.Server
18-
endpoint *endpoint.Endpoint
19-
disabledServices []string
15+
listenAddr string
16+
exposeAddr string
17+
server *server.Server
18+
endpoint *endpoint.Endpoint
2019
}
2120

2221
type Options struct {

0 commit comments

Comments
 (0)