Skip to content

Commit eba8fd9

Browse files
committed
Remove redundant stats in mux and bridge dispatcher
Since mux will add traffic stats in sub connection's dispatch function Adding additional stats result to double counting
1 parent b0d3181 commit eba8fd9

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

app/reverse/bridge.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ func (w *BridgeWorker) DispatchLink(ctx context.Context, dest net.Destination, l
230230
}
231231
return w.Dispatcher.DispatchLink(ctx, dest, link)
232232
}
233-
234-
link = w.Dispatcher.(*dispatcher.DefaultDispatcher).WrapLink(ctx, link)
235233
w.handleInternalConn(link)
236234

237235
return nil

common/mux/server.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ func (s *Server) DispatchLink(ctx context.Context, dest net.Destination, link *t
6464
if dest.Address != muxCoolAddress {
6565
return s.dispatcher.DispatchLink(ctx, dest, link)
6666
}
67-
link = s.dispatcher.(*dispatcher.DefaultDispatcher).WrapLink(ctx, link)
6867
worker, err := NewServerWorker(ctx, s.dispatcher, link)
6968
if err != nil {
7069
return err

0 commit comments

Comments
 (0)