Use ranged for loop on channels
Merge pull request #1484 from titanous/use-range

Use ranged for loop on channels