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

block when send -1 to commitCh, format code #21

Merged
merged 95 commits into from
Oct 9, 2021

Conversation

summerpro
Copy link

No description provided.

mutable_tree_test.go Outdated Show resolved Hide resolved
@zhongqiuwood zhongqiuwood changed the base branch from async-commit to main September 30, 2021 10:31
@summerpro summerpro changed the title format code block when send -1 to commitCh, format code Oct 8, 2021
ndb.tempPrePersistNodeCache = ndb.prePersistNodeCache
ndb.prePersistNodeCache = map[string]*Node{}
ndb.mtx.Unlock()
for _, node := range ndb.tempPrePersistNodeCache {
if node.persisted == true || node.prePersisted == false {
Copy link

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
S1002: should omit comparison to bool constant, can be simplified to node.persisted (gosimple)

@codecov-commenter
Copy link

Codecov Report

Merging #21 (ca2b461) into main (4b5b8bd) will decrease coverage by 1.32%.
The diff coverage is 64.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #21      +/-   ##
==========================================
- Coverage   68.90%   67.58%   -1.33%     
==========================================
  Files          22       24       +2     
  Lines        1846     2181     +335     
==========================================
+ Hits         1272     1474     +202     
- Misses        443      555     +112     
- Partials      131      152      +21     
Impacted Files Coverage Δ
logger.go 0.00% <0.00%> (ø)
node.go 69.66% <ø> (ø)
mutable_tree_oec.go 50.79% <50.79%> (ø)
nodedb_oec.go 56.33% <56.33%> (ø)
mutable_tree.go 86.74% <80.32%> (+0.85%) ⬆️
util.go 39.24% <84.61%> (+8.93%) ⬆️
nodedb.go 70.80% <87.65%> (+0.77%) ⬆️
proof_range.go 79.57% <0.00%> (-0.86%) ⬇️
export.go 100.00% <0.00%> (+3.57%) ⬆️
Impacted Files Coverage Δ
logger.go 0.00% <0.00%> (ø)
node.go 69.66% <ø> (ø)
mutable_tree_oec.go 50.79% <50.79%> (ø)
nodedb_oec.go 56.33% <56.33%> (ø)
mutable_tree.go 86.74% <80.32%> (+0.85%) ⬆️
util.go 39.24% <84.61%> (+8.93%) ⬆️
nodedb.go 70.80% <87.65%> (+0.77%) ⬆️
proof_range.go 79.57% <0.00%> (-0.86%) ⬇️
export.go 100.00% <0.00%> (+3.57%) ⬆️

@zhongqiuwood zhongqiuwood merged commit ceee932 into main Oct 9, 2021
@zhongqiuwood zhongqiuwood deleted the ray/async-commit-format-code branch October 9, 2021 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants