Skip to content

Commit

Permalink
remove transporter from gate
Browse files Browse the repository at this point in the history
  • Loading branch information
dobyte committed Dec 25, 2024
1 parent ef4a064 commit 00baed9
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions cluster/gate/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"context"
"github.com/dobyte/due/v2/etc"
"github.com/dobyte/due/v2/locate"
"github.com/dobyte/due/v2/transport"
"github.com/dobyte/due/v2/utils/xuuid"
"time"

Expand All @@ -35,15 +34,14 @@ const (
type Option func(o *options)

type options struct {
ctx context.Context // 上下文
id string // 实例ID
name string // 实例名称
addr string // 监听地址
timeout time.Duration // RPC调用超时时间
server network.Server // 网关服务器
locator locate.Locator // 用户定位器
registry registry.Registry // 服务注册器
transporter transport.Transporter // 消息传输器
ctx context.Context // 上下文
id string // 实例ID
name string // 实例名称
addr string // 监听地址
timeout time.Duration // RPC调用超时时间
server network.Server // 网关服务器
locator locate.Locator // 用户定位器
registry registry.Registry // 服务注册器
}

func defaultOptions() *options {
Expand Down

0 comments on commit 00baed9

Please sign in to comment.