()
| 292 | } |
| 293 | |
| 294 | func (s *sharedPullerState) pullStarted() { |
| 295 | s.mut.Lock() |
| 296 | s.copyTotal-- |
| 297 | s.copyNeeded-- |
| 298 | s.pullTotal++ |
| 299 | s.pullNeeded++ |
| 300 | s.updated = time.Now() |
| 301 | l.Debugln("sharedPullerState", s.folder, s.file.Name, "pullNeeded start ->", s.pullNeeded) |
| 302 | s.mut.Unlock() |
| 303 | } |
| 304 | |
| 305 | func (s *sharedPullerState) pullDone(block protocol.BlockInfo) { |
| 306 | s.mut.Lock() |