@@ -73,14 +73,14 @@ func (h *Handler) Setup() error {
73
73
if h .proxyMap .ConnectProxy != nil {
74
74
connectProxyHandler = proxy .NewConnectHandler (proxy.ConnectHandlerConfig {
75
75
Proxy : h .proxyMap .ConnectProxy ,
76
- }, h .cfgContainer ).Handle (h . node )
76
+ }, h .cfgContainer ).Handle ()
77
77
}
78
78
79
79
var refreshProxyHandler proxy.RefreshHandlerFunc
80
80
if h .proxyMap .RefreshProxy != nil {
81
81
refreshProxyHandler = proxy .NewRefreshHandler (proxy.RefreshHandlerConfig {
82
82
Proxy : h .proxyMap .RefreshProxy ,
83
- }).Handle (h . node )
83
+ }).Handle ()
84
84
}
85
85
86
86
h .node .OnConnecting (func (ctx context.Context , e centrifuge.ConnectEvent ) (centrifuge.ConnectReply , error ) {
@@ -95,7 +95,7 @@ func (h *Handler) Setup() error {
95
95
if len (h .proxyMap .RpcProxies ) > 0 {
96
96
rpcProxyHandler = proxy .NewRPCHandler (proxy.RPCHandlerConfig {
97
97
Proxies : h .proxyMap .RpcProxies ,
98
- }).Handle (h . node )
98
+ }).Handle ()
99
99
}
100
100
101
101
var publishProxyHandler proxy.PublishHandlerFunc
@@ -109,21 +109,21 @@ func (h *Handler) Setup() error {
109
109
if len (h .proxyMap .SubscribeProxies ) > 0 {
110
110
subscribeProxyHandler = proxy .NewSubscribeHandler (proxy.SubscribeHandlerConfig {
111
111
Proxies : h .proxyMap .SubscribeProxies ,
112
- }).Handle (h . node )
112
+ }).Handle ()
113
113
}
114
114
115
115
var proxySubscribeStreamHandler proxy.SubscribeStreamHandlerFunc
116
116
if len (h .proxyMap .SubscribeStreamProxies ) > 0 {
117
117
proxySubscribeStreamHandler = proxy .NewSubscribeStreamHandler (proxy.SubscribeStreamHandlerConfig {
118
118
Proxies : h .proxyMap .SubscribeStreamProxies ,
119
- }).Handle (h . node )
119
+ }).Handle ()
120
120
}
121
121
122
122
var subRefreshProxyHandler proxy.SubRefreshHandlerFunc
123
123
if len (h .proxyMap .SubRefreshProxies ) > 0 {
124
124
subRefreshProxyHandler = proxy .NewSubRefreshHandler (proxy.SubRefreshHandlerConfig {
125
125
Proxies : h .proxyMap .SubRefreshProxies ,
126
- }).Handle (h . node )
126
+ }).Handle ()
127
127
}
128
128
129
129
cfg := h .cfgContainer .Config ()
0 commit comments