atuleu / go-lol

Golang Domain, REST API binding and utilities for Riot Games League Of Legends
GNU General Public License v3.0
6 stars 2 forks source link

Avoid to open many file at once #1

Open atuleu opened 9 years ago

atuleu commented 9 years ago

defer statement are deferred to end of function. For loops that open many file, we can reach the limit of the file we can open. Therefore this statement should be enclosed (in go routine per example)