txaty / go-merkletree

Go Merkle Tree. High performance, Supporting parallel run, OpenZeppelin sorting pairs.
https://pkg.go.dev/github.com/txaty/go-merkletree
MIT License
110 stars 17 forks source link

Refactor #28

Closed txaty closed 1 year ago

txaty commented 1 year ago
  1. Remove the global worker pool, and add the worker pool to the MerkleTree struct. So now, each MerkleTree uses its worker pool;
  2. Change pool worker arguments to pointers to separate specific arguments;
  3. Add more comments;
  4. Fix unit test naming.
codecov[bot] commented 1 year ago

Codecov Report

Merging #28 (7c84431) into main (099bb78) will increase coverage by 0.88%. The diff coverage is 99.08%.

@@            Coverage Diff             @@
##             main      #28      +/-   ##
==========================================
+ Coverage   97.15%   98.04%   +0.88%     
==========================================
  Files           2        2              
  Lines         422      460      +38     
==========================================
+ Hits          410      451      +41     
+ Misses          8        6       -2     
+ Partials        4        3       -1     
Impacted Files Coverage Δ
merkle_tree.go 98.00% <99.08%> (+0.90%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more