MCPcopy Create free account
hub / github.com/coder/coder / LogsSenderFlushTimeout

Function LogsSenderFlushTimeout

codersdk/agentsdk/logs.go:108–112  ·  view source on GitHub ↗

LogsSenderFlushTimeout changes the default flush timeout (250ms), this is mostly useful for tests.

(timeout time.Duration)

Source from the content-addressed store, hash-verified

106// LogsSenderFlushTimeout changes the default flush timeout (250ms),
107// this is mostly useful for tests.
108func LogsSenderFlushTimeout(timeout time.Duration) func(*logsSenderOptions) {
109 return func(o *logsSenderOptions) {
110 o.flushTimeout = timeout
111 }
112}
113
114type logsSenderOptions struct {
115 flushTimeout time.Duration

Callers 1

TestStartupLogsSenderFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestStartupLogsSenderFunction · 0.74