MCPcopy Create free account
hub / github.com/FlashpointProject/FlashpointUltimateUpdater / NewDownloader

Function NewDownloader

downloader.go:47–62  ·  view source on GitHub ↗
(state *InstallerState)

Source from the content-addressed store, hash-verified

45}
46
47func NewDownloader(state *InstallerState) *Downloader {
48 d := &Downloader{
49 RateLimit: 0,
50 bufferSize: 32 * 1024,
51 state: state,
52 client: grab.NewClient(),
53 workerWg: sync.WaitGroup{},
54 responderWg: sync.WaitGroup{},
55 updaterWg: sync.WaitGroup{},
56 newRequestWg: sync.WaitGroup{},
57 running: false,
58 started: false,
59 }
60
61 return d
62}
63
64func (d *Downloader) Resume() error {
65 if d.running {

Callers 1

NewInstallStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected