Skip to content

Commit

Permalink
add mutex to halt
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaubennassar committed Nov 12, 2024
1 parent 10792e7 commit 2080ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reorgdetector/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ func (hl *headersList) get(num uint64) *header {

// getSorted returns headers in sorted order
func (hl *headersList) getSorted() []header {
hl.RLock()
sortedBlocks := make([]header, 0, len(hl.headers))

hl.RLock()
for _, b := range hl.headers {
sortedBlocks = append(sortedBlocks, b)
}
Expand Down

0 comments on commit 2080ef0

Please sign in to comment.