You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesatee.apache.org by ms...@apache.org on 2019/12/10 18:00:08 UTC

[incubator-mesatee] branch master updated: [fns] Fix typo (#137)

This is an automated email from the ASF dual-hosted git repository.

mssun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mesatee.git


The following commit(s) were added to refs/heads/master by this push:
     new 0d30a92  [fns] Fix typo (#137)
0d30a92 is described below

commit 0d30a929705fde8d1fd014d66839b6979e9cecb6
Author: Hongbin Mao <he...@gmail.com>
AuthorDate: Wed Dec 11 01:59:59 2019 +0800

    [fns] Fix typo (#137)
---
 .../src/trusted_worker/private_join_and_compute.rs             | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/mesatee_services/fns/sgx_trusted_lib/src/trusted_worker/private_join_and_compute.rs b/mesatee_services/fns/sgx_trusted_lib/src/trusted_worker/private_join_and_compute.rs
index 04f4b91..d8a535c 100644
--- a/mesatee_services/fns/sgx_trusted_lib/src/trusted_worker/private_join_and_compute.rs
+++ b/mesatee_services/fns/sgx_trusted_lib/src/trusted_worker/private_join_and_compute.rs
@@ -84,11 +84,11 @@ impl Worker for PrivateJoinAndComputeWorker {
         for file_id in input.file_list.iter() {
             let plaintext = context.read_file(file_id)?;
             let records = parse_input(plaintext)?;
-            for (indentity, amount) in records.into_iter() {
-                let value = counter_map.get(&indentity).cloned().unwrap_or(0);
-                counter_map.insert(indentity.to_owned(), value + 1);
-                let value = add_map.get(&indentity).cloned().unwrap_or(0);
-                add_map.insert(indentity, value + amount);
+            for (identity, amount) in records.into_iter() {
+                let value = counter_map.get(&identity).cloned().unwrap_or(0);
+                counter_map.insert(identity.to_owned(), value + 1);
+                let value = add_map.get(&identity).cloned().unwrap_or(0);
+                add_map.insert(identity, value + amount);
             }
         }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@mesatee.apache.org
For additional commands, e-mail: commits-help@mesatee.apache.org