Print error from CheckingLoop

This commit is contained in:
Tevin Zhang 2019-02-12 16:18:18 +08:00
parent f00667a79b
commit 070a54c143
1 changed files with 2 additions and 1 deletions

View File

@ -121,7 +121,8 @@ func (cc *ConcurrentChecker) Count(i int) uint64 {
func (cc *ConcurrentChecker) Launch(ctx context.Context) error {
var err error
go func() {
err = cc.checker.CheckingLoop(ctx)
err := cc.checker.CheckingLoop(ctx)
log.Fatal("Error during checking loop: ", err)
}()
for i := 0; i < cc.conf.Concurrency; i++ {