Here, we're basically replicating the logic from Finagle's
BindingFactory. This is done so we bind a destination before
creating a client so that multiple requests to a single bound
destination may share connection pools etc.
The logic has been changed to account for the way residuals play
into naming. We use the helper classes Bound and BoundTree
instead of Name.Bound and NameTree[Name.Bound] so that we can
control when residual paths factor into caching.
Binds a Dst to a ServiceFactory.
Here, we're basically replicating the logic from Finagle's BindingFactory. This is done so we bind a destination before creating a client so that multiple requests to a single bound destination may share connection pools etc.
The logic has been changed to account for the way residuals play into naming. We use the helper classes Bound and BoundTree instead of Name.Bound and NameTree[Name.Bound] so that we can control when residual paths factor into caching.