Close devices channel in the crawler when done with filepath.Walk so that the receiver knows no more devices are coming.
I'm not sure if this is the best way of doing this, so I'm open to discuss/change this. One alternative would be to have a dedicated 'done' channel and send struct{} to it.
Close devices channel in the crawler when done with filepath.Walk so that the receiver knows no more devices are coming.
I'm not sure if this is the best way of doing this, so I'm open to discuss/change this. One alternative would be to have a dedicated 'done' channel and send
struct{}
to it.