// ToProtoStorageJobs converts a slice of ffs.StorageJobs to proto Jobs.
ToProtoStorageJobs converts a slice of ffs.StorageJobs to proto Jobs.
// ToProtoStorageJobs converts a slice of ffs . StorageJobs to proto Jobs .
func ToProtoStorageJobs(jobs []ffs.StorageJob) ([]*userPb.StorageJob, error) {
	var res []*userPb.StorageJob
	for _, job := range jobs {
		j, err := toRPCJob(job)
		if err != nil {
			return nil, err
		}
		res = append(res, j)
	}
	return res, nil
}
func ToProtoStorageJobs ( jobs [ ] ffs . StorageJob ) ( [ ] * userPb . StorageJob , error ) { var res [ ] * userPb . StorageJob for _ , job := range jobs { j , err := toRPCJob ( job ) if err != nil { return nil , err } res = append ( res , j ) } return res , nil }
ToProtoStorageJobs converts a slice of ffs.StorageJobs to proto Jobs.
ToProtoStorageJobs converts a slice of ffs . StorageJobs to proto Jobs .