File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change 21
21
ChannelHandler FileRegion
22
22
ChannelInboundHandler
23
23
ChannelOutboundHandler
24
- ChannelHandlerContext]
24
+ ChannelHandlerContext
25
+ ChannelInitializer]
25
26
[io.netty.channel.epoll Epoll EpollEventLoopGroup
26
27
EpollServerSocketChannel
27
28
EpollSocketChannel]
627
628
(.write ctx msg promise)))))
628
629
629
630
(defn pipeline-initializer [pipeline-builder]
630
- (channel-inbound-handler
631
-
632
- :channel-registered
633
- ([this ctx]
634
- (let [pipeline (.pipeline ctx)]
635
- (try
636
- (.remove pipeline this)
637
- (pipeline-builder pipeline)
638
- (.fireChannelRegistered ctx)
639
- (catch Throwable e
640
- (log/warn e " Failed to initialize channel" )
641
- (.close ctx)))))))
631
+ (proxy [ChannelInitializer] []
632
+ (initChannel [^Channel ch]
633
+ (pipeline-builder ^ChannelPipeline (.pipeline ch)))))
642
634
643
635
(defn instrument!
644
636
[stream]
You can’t perform that action at this time.
0 commit comments