Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
N
nebula
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • exchain
  • nebula
  • Repository

Switch branch/tag
  • nebula
  • op-service
  • ioutil
  • wrapped_closer.go
Find file
BlameHistoryPermalink
  • siddharth0a's avatar
    feat: ensure proper closing of gzip and file writers/readers to prevent resource leaks (#11475) · 698633cd
    siddharth0a authored Aug 19, 2024
    * add gzipCloser struct
    
    * add Close method
    
    * fix OpenDecompressed func
    
    * fix CompressByFileType func
    
    * knit
    
    * Apply suggestions from code review
    
    close both even if one fails
    Co-authored-by: default avatarAdrian Sutton <adrian@symphonious.net>
    
    * fix WriteCloser Close method
    
    * fix name for more general
    
    * fix writercloser name for more geneeral
    
    * add construction function for WrappedCloser
    
    * using construction func
    
    * seperate wrapped closer struct to wrapped_closer.go
    
    ---------
    Co-authored-by: default avatarAdrian Sutton <adrian@symphonious.net>
    698633cd
wrapped_closer.go 1.18 KB
EditWeb IDE

Replace wrapped_closer.go

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.