Commit 73b8724
fix: close cached content to prevent memory leak in
* Initial plan
* Fix memory leak by adding defer content.Close() in serveFetchDownload
Co-authored-by: aofei <[email protected]>
* Simplify test code based on code review feedback
Co-authored-by: aofei <[email protected]>
* Add .gitignore to exclude build artifacts
Co-authored-by: aofei <[email protected]>
* Move test to subtest and remove .gitignore per code review
Co-authored-by: aofei <[email protected]>
* Use existing closerFunc instead of testReadCloser
Co-authored-by: aofei <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: aofei <[email protected]>Goproxy.serveFetchDownload (#152)1 parent 1311b8d commit 73b8724
2 files changed
+47
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
875 | 921 | | |
876 | 922 | | |
877 | 923 | | |
| |||
0 commit comments