Goroutine sleeps if the output was the same as the previous one