Commit aa5d8ee
authored
refactor: optimize gzip writer pool management and resource handling (#102)
- Remove deferred function that resets and puts the gzip writer back into the pool
- Add immediate return of the gzip writer to the pool after resetting it
Signed-off-by: appleboy <[email protected]>1 parent 4fc267c commit aa5d8ee
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 78 | | |
83 | 79 | | |
84 | 80 | | |
| |||
98 | 94 | | |
99 | 95 | | |
100 | 96 | | |
| 97 | + | |
101 | 98 | | |
102 | 99 | | |
103 | 100 | | |
| |||
0 commit comments