fix(pkg/logfile): description for exported functions

This commit is contained in:
2019-06-15 15:49:21 +02:00
parent 5f859139a4
commit 05cd62c624

View File

@ -74,6 +74,8 @@ func ReadTemperatures(temperatureLogfile string) ([]*types.Temperature, error) {
return temperatures, nil
}
// ReadTemperaturesChannel reads temperatures from a channel until it is closed
// and returns the temperature.
func ReadTemperaturesChannel(temperatureChannel <-chan *types.Temperature) []*types.Temperature {
temperatures := make([]*types.Temperature, 0)
for {