MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / clearTempFiles

Function clearTempFiles

cmd/server/main-server.go:425–434  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

423}
424
425func clearTempFiles() error {
426 ctx, cancelFn := context.WithTimeout(context.Background(), 2*time.Second)
427 defer cancelFn()
428 client, err := wstore.DBGetSingleton[*waveobj.Client](ctx)
429 if err != nil {
430 return fmt.Errorf("error getting client: %v", err)
431 }
432 filestore.WFS.DeleteZone(ctx, client.TempOID)
433 return nil
434}
435
436func maybeStartPprofServer() {
437 settings := wconfig.GetWatcher().GetFullConfig().Settings

Callers 2

doShutdownFunction · 0.85
mainFunction · 0.85

Calls 1

DeleteZoneMethod · 0.80

Tested by

no test coverage detected