Skip to content

Conversation

ucwong
Copy link
Member

@ucwong ucwong commented Dec 6, 2022

This changes the Pop method to assign the zero value before reducing slice size. Doing so ensures the backing array does not reference removed item values.

…26296)

This changes the Pop method to assign the zero value before
reducing slice size. Doing so ensures the backing array does not
reference removed item values.
@codecov
Copy link

codecov bot commented Dec 6, 2022

Codecov Report

Merging #1374 (fb8fbd6) into master (ec26f8c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1374   +/-   ##
=======================================
  Coverage   51.62%   51.62%           
=======================================
  Files         461      461           
  Lines       58056    58059    +3     
=======================================
+ Hits        29969    29971    +2     
- Misses      25813    25818    +5     
+ Partials     2274     2270    -4     
Impacted Files Coverage Δ
core/txpool/list.go 91.46% <100.00%> (+0.03%) ⬆️
core/types/transaction.go 55.82% <100.00%> (+0.21%) ⬆️
p2p/util.go 100.00% <100.00%> (ø)
rpc/server.go 77.58% <0.00%> (-6.90%) ⬇️
p2p/discover/v4_udp.go 74.74% <0.00%> (-4.34%) ⬇️
core/rawdb/chain_iterator.go 58.65% <0.00%> (-2.24%) ⬇️
ctxc/sync.go 60.00% <0.00%> (-1.30%) ⬇️
rpc/client.go 85.38% <0.00%> (-1.00%) ⬇️
p2p/simulations/network.go 59.85% <0.00%> (-0.72%) ⬇️
p2p/discover/v5_udp.go 81.15% <0.00%> (-0.23%) ⬇️
... and 12 more

@ucwong ucwong merged commit 4ba651c into master Dec 7, 2022
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