Markus Pesch
5220eac16b
changes: - remove remote operations - add function to write measured values into a channel - add get humidity sensors from config - add get temperature sensors from config - remove FileLogger - exclude some functions from pkf into internal
17 lines
261 B
Go
17 lines
261 B
Go
package collect
|
|
|
|
func Errors(errorChannel <-chan error) []error {
|
|
errorList := make([]error, 0)
|
|
for {
|
|
select {
|
|
case err, more := <-errorChannel:
|
|
if more {
|
|
errorList = append(errorList, err)
|
|
continue
|
|
}
|
|
default:
|
|
return errorList
|
|
}
|
|
}
|
|
}
|