1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00

Merge pull request #1029 from Astone-Chou/lint_fix_fix

fix tiny error in linting fixes
This commit is contained in:
Asim Aslam 2019-12-09 07:47:46 +00:00 committed by GitHub
commit b804303aa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {