Skip to content

Commit

Permalink
add wait discv5 table
Browse files Browse the repository at this point in the history
  • Loading branch information
GrapeBaBa committed Oct 23, 2024
1 parent cfbffc5 commit 8563ce1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2p/discover/portal_protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ func (p *PortalProtocol) Start() error {
go p.offerWorker()
}

// wait for the routing table to be initialized
// wait for both initialization processes to complete
<-p.DiscV5.tab.initDone
<-p.table.initDone
return nil
}
Expand Down

0 comments on commit 8563ce1

Please sign in to comment.