Skip to content

Commit

Permalink
Fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
EinKrebs committed Feb 14, 2024
1 parent 22d597e commit 90030f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 7 additions & 4 deletions router/mock/qrouter/mock_qrouter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions router/qrouter/proxy_routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -726,10 +726,6 @@ func (qr *ProxyQrouter) routeWithRules(ctx context.Context, stmt lyx.Node, sph s
}

/* TODO: delay this until step 2. */
krs, err := qr.mgr.ListKeyRanges(ctx, queryDistribution)
if err != nil {
return nil, err
}

meta := NewRoutingMetadataContext(queryDistribution, sph.BindParams(), sph.BindParamFormatCodes())

Expand Down Expand Up @@ -982,7 +978,7 @@ func (qr *ProxyQrouter) routeWithRules(ctx context.Context, stmt lyx.Node, sph s
if err != nil {
return nil, err
}
krs, err = qr.mgr.ListKeyRanges(ctx, ds.Id)
krs, err := qr.mgr.ListKeyRanges(ctx, ds.Id)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 90030f2

Please sign in to comment.