-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor crawl #5
base: dejavu-main-go
Are you sure you want to change the base?
Conversation
@@ -4,19 +4,19 @@ import "fmt" | |||
|
|||
// First version as presented at: | |||
// https://gist.github.com/harryhare/6a4979aa7f8b90db6cbc74400d0beb49#file-exercise-web-crawler-go | |||
func Crawl(url string, depth int, fetcher Fetcher) { | |||
func Crawl(reqUrl string, depth int, fetcher Fetcher) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this refactoring necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it makes the code more readable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -4,19 +4,19 @@ import "fmt" | |||
|
|||
// First version as presented at: | |||
// https://gist.github.com/harryhare/6a4979aa7f8b90db6cbc74400d0beb49#file-exercise-web-crawler-go | |||
func Crawl(url string, depth int, fetcher Fetcher) { | |||
func Crawl(reqUrl string, depth int, fetcher Fetcher) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it makes the code more readable.
This PR introduces the following changes:
View on