Skip to content

Commit 1a67f52

Browse files
committed
feat: fix misspelling and add log on success
1 parent 31a7a1c commit 1a67f52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

request/api_async_request.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ func AsyncAPIRequest(users []models.ReadCsv, numberOfWorkers int, url string, me
3535
resultCh <- bodyStr
3636
if err != nil {
3737
// If there is an error making the API request, print the error
38-
log.Println("error sending request: " + err.Error())
38+
log.Println("error send request: " + err.Error())
3939
errorOnApiRequests = err
4040
//break
4141
}
42+
log.Println("success send request: " + "200 " + input.CNJNumber)
4243
}
4344
// When the worker goroutine is done processing inputs, signal the wait group
4445
wg.Done()

0 commit comments

Comments
 (0)