Skip to content

Commit

Permalink
Fix RouteGroup bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Nov 18, 2019
1 parent f388188 commit 5efaf56
Show file tree
Hide file tree
Showing 2 changed files with 513 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/router/route_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@ func NewRouteGroup(rt routing.Table, desc routing.RouteDescriptor) *RouteGroup {
rg := &RouteGroup{
logger: logging.MustGetLogger(fmt.Sprintf("RouteGroup %v", desc)),
desc: desc,
rt: rt,
tps: make([]*transport.ManagedTransport, 0),
fwd: make([]routing.Rule, 0),
rvs: make([]routing.Rule, 0),
tps: make([]*transport.ManagedTransport, 0),
readCh: make(chan []byte, readChBufSize),
readBuf: bytes.Buffer{},
rt: rt,
done: make(chan struct{}),
}

go rg.keepAliveLoop()
Expand Down
Loading

0 comments on commit 5efaf56

Please sign in to comment.