Skip to content
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

Merged
merged 1 commit into from
Dec 19, 2023
Merged

Add support for multiple challenges per level #10

merged 1 commit into from
Dec 19, 2023

Conversation

stephen-pl
Copy link
Contributor

@stephen-pl stephen-pl commented Nov 8, 2023

No description provided.

@stephen-pl stephen-pl requested a review from jcace November 8, 2023 06:08
.golangci.yml Show resolved Hide resolved
pkg/env/env.go Outdated Show resolved Hide resolved
pkg/net/bitswap.go Outdated Show resolved Hide resolved
pkg/net/bitswap.go Outdated Show resolved Hide resolved
pkg/net/bitswap.go Outdated Show resolved Hide resolved
pkg/net/bitswap.go Outdated Show resolved Hide resolved
pkg/net/bitswap.go Outdated Show resolved Hide resolved
@stephen-pl stephen-pl force-pushed the issue-34 branch 3 times, most recently from e84c0f2 to 4fe9b4a Compare November 8, 2023 22:59

i++ // To the next layer of the tree
func getMaxChallengesPerLevel(logger *zap.SugaredLogger) int {
Copy link
Contributor

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.

Copy link
Contributor

@jcace jcace left a 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 👍

@stephen-pl stephen-pl force-pushed the issue-34 branch 5 times, most recently from e1602c7 to d868d63 Compare November 28, 2023 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants