MCPcopy
hub / github.com/syncthing/syncthing / DownloadProgress

Method DownloadProgress

lib/protocol/protocol.go:399–401  ·  view source on GitHub ↗

DownloadProgress sends the progress updates for the files that are currently being downloaded.

(ctx context.Context, dp *DownloadProgress)

Source from the content-addressed store, hash-verified

397
398// DownloadProgress sends the progress updates for the files that are currently being downloaded.
399func (c *rawConnection) DownloadProgress(ctx context.Context, dp *DownloadProgress) {
400 c.send(ctx, dp.toWire(), nil)
401}
402
403func (c *rawConnection) ping() bool {
404 return c.send(context.Background(), &bep.Ping{}, nil)

Callers

nothing calls this directly

Calls 2

sendMethod · 0.95
toWireMethod · 0.45

Tested by

no test coverage detected