mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
04f16489ee
commit
56281d4fa0
1 changed files with 3 additions and 2 deletions
|
|
@ -69,8 +69,9 @@ type initerState struct {
|
||||||
|
|
||||||
func newIniterState(disk ethdb.Database, noWait bool) *initerState {
|
func newIniterState(disk ethdb.Database, noWait bool) *initerState {
|
||||||
s := &initerState{
|
s := &initerState{
|
||||||
disk: disk,
|
state: stateSyncing,
|
||||||
term: make(chan struct{}),
|
disk: disk,
|
||||||
|
term: make(chan struct{}),
|
||||||
}
|
}
|
||||||
go s.update(noWait)
|
go s.update(noWait)
|
||||||
return s
|
return s
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue