server.go: format for

Signed-off-by: zhangxiaoyu-zidif <zhang.xiaoyu33@zte.com.cn>
This commit is contained in:
zhangxiaoyu-zidif 2017-05-15 07:12:28 +08:00
parent 5072b22c5f
commit 1ab62a0b4d

View file

@ -92,13 +92,12 @@ func (s *Server) serveAPI() error {
}(srv)
}
for i := 0; i < len(s.servers); i++ {
for range s.servers {
err := <-chErrors
if err != nil {
return err
}
}
return nil
}