Method
notify
(remote string, status int, err error)
Source from the content-addressed store, hash-verified
| 547 | } |
| 548 | |
| 549 | func (b *backgroundWriter) notify(remote string, status int, err error) { |
| 550 | state := BackgroundUploadState{ |
| 551 | Remote: remote, |
| 552 | Status: status, |
| 553 | Error: err, |
| 554 | } |
| 555 | select { |
| 556 | case b.notifyCh <- state: |
| 557 | fs.Debugf(remote, "notified background upload state: %v", state.Status) |
| 558 | default: |
| 559 | } |
| 560 | } |
| 561 | |
| 562 | func (b *backgroundWriter) run() { |
| 563 | state := 0 |
Tested by
no test coverage detected