From b991d9d8c791460a0e5ab4d28502f95efa3d866c Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 1 Nov 2019 21:33:59 +0100 Subject: broke stuff, fixed stuff... --- src/wordlist.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/wordlist.go') diff --git a/src/wordlist.go b/src/wordlist.go index 5841c47..adfda9a 100644 --- a/src/wordlist.go +++ b/src/wordlist.go @@ -2,6 +2,7 @@ package main import ( "bufio" + "log" "os" ) @@ -27,9 +28,8 @@ func readWordlist(wordlistPath string) ([]string, error) { func writeWordlistToChannel(wordlistChannel chan string, wordlist []string) { // write all the words from the wordlist into the wordlistChannel - go func() { - for _, line := range wordlist { - wordlistChannel <- line - } - }() + for _, line := range wordlist { + wordlistChannel <- line + } + log.Printf("%s Done inserting the wordlist elements into the wordlist channel", green("[+]")) } -- cgit 1.4.1