-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add support for multiple challenges per level #10
Conversation
7f3ac67
to
2d4e263
Compare
e84c0f2
to
4fe9b4a
Compare
pkg/net/bitswap.go
Outdated
|
||
i++ // To the next layer of the tree | ||
func getMaxChallengesPerLevel(logger *zap.SugaredLogger) int { |
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.
seems a bit weird that it needs a logger
to be passed in to call this, I think it's cleaner if this thing initializes its own logging.Logger
, or alternatively move the body of this function into the calling code as it's only used in one place anyways.
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.
Looks good, nice work - just one small comment to fix 👍
e1602c7
to
d868d63
Compare
No description provided.