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

chore!: remove MinShareCount constant #2566

Closed
wants to merge 6 commits into from

Conversation

Chirag018
Copy link
Contributor

Closes #1183

@codecov-commenter
Copy link

codecov-commenter commented Sep 21, 2023

Codecov Report

Merging #2566 (bd8a7c2) into main (dea20c5) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2566      +/-   ##
==========================================
+ Coverage   20.63%   20.66%   +0.03%     
==========================================
  Files         133      133              
  Lines       15346    15349       +3     
==========================================
+ Hits         3166     3172       +6     
+ Misses      11877    11875       -2     
+ Partials      303      302       -1     
Files Coverage Δ
pkg/square/square.go 56.90% <100.00%> (+0.72%) ⬆️

... and 1 file with indirect coverage changes

@rootulp rootulp changed the title chore: remove MinShareCount constant chore!: remove MinShareCount constant Sep 21, 2023
pkg/square/square.go Outdated Show resolved Hide resolved
@rootulp rootulp added the warn:api breaking item will be break an API and require a major bump label Sep 21, 2023
@rootulp
Copy link
Collaborator

rootulp commented Sep 21, 2023

Thanks for the PR @Chirag018 ! I don't think we want to include any more breaking changes in v1.x. so we may not end up merging this

@celestia-bot celestia-bot requested a review from a team September 21, 2023 17:11
pkg/square/square.go Outdated Show resolved Hide resolved
@celestia-bot celestia-bot requested a review from a team September 21, 2023 18:23
@Chirag018 Chirag018 requested a review from rootulp September 21, 2023 18:51
return shares.TailPaddingShares(appconsts.MinShareCount)
// minShareCount is the minimum number of shares allowed in the original
// data square.
minShareCount := appconsts.MinSquareSize*appconsts.MinSquareSize
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Optional Suggestion] If we anticipate that the minimum share count might be utilized beyond the scope of the EmptySquare, it could be advantageous to create a dedicated function, such as MinShareCount().

Copy link
Collaborator

@staheri14 staheri14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@celestia-bot celestia-bot requested a review from a team September 28, 2023 18:42
@rootulp
Copy link
Collaborator

rootulp commented Oct 4, 2023

Sorry @Chirag018 I assume we didn't merge this to avoid last minute breaking changes in the v1.x release. Given the low-ish priority of #1183, I think we should close the issue as won't do for now.

@rootulp rootulp closed this Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
warn:api breaking item will be break an API and require a major bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider removing constants: MinShareCount and MaxShareCount
5 participants