remove syncer done

This commit is contained in:
William Banfield
2021-09-29 16:56:06 -04:00
parent 022148613e
commit f8cebbc5af
2 changed files with 0 additions and 6 deletions

View File

@@ -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

View File

@@ -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 {