Router table.Read replaces List/Query (#1966)
* Table.REad insted of list and query * fmt
This commit is contained in:
parent
d0d74bdc83
commit
21ab0b830a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user