Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/SurgeDM/Surge
/ Flush
Method
Flush
internal/engine/single/downloader.go:275–277 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
273
}
274
275
func
(w *progressReader) Flush() {
276
w.flushWithTime(time.Now())
277
}
278
279
func
(w *progressReader) flushWithTime(now time.Time) {
280
if
w.state == nil {
Callers
7
TestLocalDownloadService_BatchProgress
Function · 0.80
TestRemoteDownloadService_StreamEvents_CleanupClosesChannel
Function · 0.80
TestRemoteDownloadService_StreamEvents_ShutdownClosesChannel
Function · 0.80
Download
Method · 0.80
TestProbeServer_ReadsBodyBeforeContextCancel
Function · 0.80
printDownloads
Function · 0.80
eventsHandler
Function · 0.80
Calls
1
flushWithTime
Method · 0.95
Tested by
4
TestLocalDownloadService_BatchProgress
Function · 0.64
TestRemoteDownloadService_StreamEvents_CleanupClosesChannel
Function · 0.64
TestRemoteDownloadService_StreamEvents_ShutdownClosesChannel
Function · 0.64
TestProbeServer_ReadsBodyBeforeContextCancel
Function · 0.64