MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / CacheEdit

Struct CacheEdit

api/client.go:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16const defaultLLMStreamIdleTimeout = 3 * time.Minute
17
18type streamIdleTimeoutContextKey struct{}
19
20func ContextWithStreamIdleTimeout(ctx context.Context, timeout time.Duration) context.Context {
21 if timeout <= 0 {
22 return ctx
23 }
24 return context.WithValue(ctx, streamIdleTimeoutContextKey{}, timeout)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected