addressing review comments

This commit is contained in:
Murali Reddy committed 2018-09-03 15:25:57 +05:30
1 parent 40980aeb90
commit 16a8988e41
1 file changed
+3 -6
+3 -6
View File
@@ -627,12 +627,9 @@ func monitorInterface(ifaceName string, log *logrus.Logger) error {
}
go func() {
for {
select {
case update := <-updatesChannel:
if update.Link.Attrs().Name == ifaceName && update.IfInfomsg.Flags&syscall.IFF_UP == 0 {
log.Errorf("Interface %q which needs to be in UP state for Weave functioning is found to be in DOWN state", ifaceName)
}
for update := range updatesChannel {
if update.Link.Attrs().Name == ifaceName && update.IfInfomsg.Flags&syscall.IFF_UP == 0 {
log.Errorf("Interface %q which needs to be in UP state for Weave functioning is found to be in DOWN state", ifaceName)
}
}
}()