mirror of
https://github.com/tendermint/tendermint.git
synced 2026-05-20 22:21:28 +00:00
remove syncer done
This commit is contained in:
@@ -249,8 +249,6 @@ func (r *Reactor) OnStop() {
|
||||
|
||||
if r.syncer != nil {
|
||||
r.syncer.Close()
|
||||
|
||||
<-r.syncer.Done()
|
||||
}
|
||||
|
||||
// Close closeCh to signal to all spawned goroutines to gracefully exit. All
|
||||
|
||||
@@ -373,10 +373,6 @@ func (s *syncer) Close() {
|
||||
close(s.closeCh)
|
||||
}
|
||||
|
||||
func (s *syncer) Done() <-chan struct{} {
|
||||
return s.closeCh
|
||||
}
|
||||
|
||||
// offerSnapshot offers a snapshot to the app. It returns various errors depending on the app's
|
||||
// response, or nil if the snapshot was accepted.
|
||||
func (s *syncer) offerSnapshot(ctx context.Context, snapshot *snapshot) error {
|
||||
|
||||
Reference in New Issue
Block a user