ReuseByteSlices puts the byte slice back into bytePool for reuse.
(buffs [][]byte)
| 45 | |
| 46 | // ReuseByteSlices puts the byte slice back into bytePool for reuse. |
| 47 | func ReuseByteSlices(buffs [][]byte) { |
| 48 | for _, b := range buffs { |
| 49 | _ = bytePool.Put(b) |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func intFromEnv(env string, defaultValue int) int { |
| 54 | // get the value from the environment |