()
| 266 | } |
| 267 | |
| 268 | func (s *Sync) startDownstream() { |
| 269 | defer s.Stop(nil) |
| 270 | |
| 271 | err := s.downstream.mainLoop() |
| 272 | if err != nil { |
| 273 | s.Stop(errors.Wrap(err, "downstream")) |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | func (s *Sync) initialSync(onInitUploadDone chan struct{}, onInitDownloadDone chan struct{}) error { |
| 278 | initialSync := newInitialSyncer(&initialSyncOptions{ |