(config *MiddlewareConfig)
| 149 | } |
| 150 | |
| 151 | func 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 | |
| 162 | type logAttempt struct { |
| 163 | Attempt int `json:"attempt"` |
no outgoing calls
no test coverage detected
searching dependent graphs…