Skip to content

Commit

Permalink
Fix panic if no connection to consul
Browse files Browse the repository at this point in the history
  • Loading branch information
mbobakov committed Feb 4, 2019
1 parent da19546 commit 5c8cb51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ func watchConsulService(ctx context.Context, s servicer, tgt target, out chan<-
WaitTime: tgt.Wait,
},
)
lastIndex = meta.LastIndex
if err != nil {
grpclog.Errorf("[Consul resolver] Couldn't fetch endpoints. target={%s}", tgt)
continue
}
lastIndex = meta.LastIndex
grpclog.Infof("[Consul resolver] %d endpoints fetched in(+wait) %s for target={%s}",
len(ss),
meta.RequestTime,
Expand Down

0 comments on commit 5c8cb51

Please sign in to comment.