Skip to content

Commit 6449116

Browse files
committed
remove route logic
1 parent 4a673bb commit 6449116

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

pkg/dashboard/route.go

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,7 @@ func (r *routeClient) Get(ctx context.Context, name string) (*v1.Route, error) {
5555

5656
// List is only used in cache warming up. So here just pass through
5757
// to APISIX.
58-
func (r *routeClient) List(ctx context.Context, listOptions ...interface{}) ([]*v1.Route, error) {
59-
var options ListOptions
60-
if len(listOptions) > 0 {
61-
options = listOptions[0].(ListOptions)
62-
}
63-
if options.From == ListFromCache {
64-
log.Debugw("try to list routes in cache",
65-
zap.String("cluster", r.cluster.name),
66-
zap.String("url", r.url),
67-
)
68-
return r.cluster.cache.ListRoutes("label",
69-
options.KindLabel.Kind,
70-
options.KindLabel.Namespace,
71-
options.KindLabel.Name)
72-
}
58+
func (r *routeClient) List(ctx context.Context, args ...interface{}) ([]*v1.Route, error) {
7359
log.Debugw("try to list routes in APISIX",
7460
zap.String("cluster", r.cluster.name),
7561
zap.String("url", r.url),

0 commit comments

Comments
 (0)