From 21ab0b830a783047c2082121ff1a105e25c8bcaa Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Sun, 23 Aug 2020 13:10:48 +0100 Subject: [PATCH] Router table.Read replaces List/Query (#1966) * Table.REad insted of list and query * fmt --- static.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static.go b/static.go index 28211c5..0030c3f 100644 --- a/static.go +++ b/static.go @@ -44,7 +44,7 @@ func (s *static) Table() router.Table { func (s *static) Lookup(service string, opts ...router.LookupOption) ([]router.Route, error) { options := router.NewLookup(opts...) - _, _ , err := net.SplitHostPort(service) + _, _, err := net.SplitHostPort(service) if err == nil { // use the address options.Address = service