MCPcopy Create free account
hub / github.com/riverqueue/river / defaultConfig

Function defaultConfig

riverlog/river_log.go:151–160  ·  view source on GitHub ↗
(config *MiddlewareConfig)

Source from the content-addressed store, hash-verified

149}
150
151func defaultConfig(config *MiddlewareConfig) *MiddlewareConfig {
152 if config == nil {
153 config = &MiddlewareConfig{}
154 }
155
156 config.MaxSizeBytes = cmp.Or(config.MaxSizeBytes, maxSizeBytes)
157 config.MaxTotalBytes = min(cmp.Or(config.MaxTotalBytes, maxTotalBytes), maxTotalBytesMax)
158
159 return config
160}
161
162type logAttempt struct {
163 Attempt int `json:"attempt"`

Callers 2

NewMiddlewareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…