optimize the goroutine in follower node
Open
type/enhancement
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 783
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 36
Description
## Enhancement Task
Hot region storage never update the storage, it can run after the node becomes leader
```
# 0x1ff7fa4 [github.com/tikv/pd/pkg/storage.(*HotRegionStorage](http://github.com/tikv/pd/pkg/storage.(*HotRegionStorage)).backgroundDelete+0x1e4 /workspace/source/pd/pkg/storage/hot_region_storage.go:182
1 @ 0xf11dee 0xf22885 0x1ff81dc 0xf46921
# 0x1ff81db github.com/tikv/pd/pkg/storage.(*HotRegionStorage).backgroundFlush+0xfb /workspace/source/pd/pkg/storage/hot_region_storage.go:213
```
Contributor guide
Assessment
This issue has not been assessed yet.