1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-23 17:53:05 +02:00

fix tiny error in linting fixes

This commit is contained in:
Astone 2019-12-09 11:18:45 +08:00
parent e2b2a30668
commit 55a15ecf12

View File

@ -17,7 +17,7 @@ func (r *Resolver) Resolve(name string) ([]*resolver.Record, error) {
if err != nil {
return nil, err
}
records := make([]*resolver.Record, len(addrs))
records := make([]*resolver.Record, 0, len(addrs))
for _, addr := range addrs {
address := addr.Target
if addr.Port > 0 {