MCPcopy
hub / github.com/rclone/rclone / notify

Method notify

backend/cache/handle.go:549–560  ·  view source on GitHub ↗
(remote string, status int, err error)

Source from the content-addressed store, hash-verified

547}
548
549func (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
562func (b *backgroundWriter) run() {
563 state := 0

Callers 1

runMethod · 0.95

Calls 1

DebugfFunction · 0.92

Tested by

no test coverage detected