services: import allianzdirectcall update

* use usize for counter

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-07-13 00:49:49 +02:00
parent 555a02fcc3
commit 53d8f80b75

View File

@@ -63,7 +63,7 @@ pub fn import(p: &mut String, data_list: &mut PolicyDataList,
}
// Iterate over each record, deserialize und write to our structures
let mut count = 0;
let mut count : usize = 0;
for result in csv_reader.deserialize() {
// The iterator yields Result<StringRecord, Error>, so we check the
// error here.
@@ -80,6 +80,8 @@ pub fn import(p: &mut String, data_list: &mut PolicyDataList,
data_list.push(record);
count +=1;
*policy_data_count = count;
};
let dt_end: DateTime<Local> = Local::now();