(config GzipConfig)
| 214 | } |
| 215 | |
| 216 | func gzipCompressPool(config GzipConfig) sync.Pool { |
| 217 | return sync.Pool{ |
| 218 | New: func() any { |
| 219 | w, err := gzip.NewWriterLevel(io.Discard, config.Level) |
| 220 | if err != nil { |
| 221 | return err |
| 222 | } |
| 223 | return w |
| 224 | }, |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | func bufferPool() sync.Pool { |
| 229 | return sync.Pool{ |
no outgoing calls
no test coverage detected
searching dependent graphs…