Skip to content

Commit

Permalink
Stop probing user created attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bach committed Apr 18, 2019
1 parent 8a48a22 commit a73c867
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/domain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ where

self.input_sessions.insert(name.to_string(), session);

self.create_sourced_attribute(name, config, &pairs)?;
self.create_sourced_attribute(name, config, false, &pairs)?;

Ok(())
}
Expand All @@ -91,6 +91,7 @@ where
&mut self,
name: &str,
config: AttributeConfig,
probe_progress: bool,
pairs: &Stream<S, ((Value, Value), T, isize)>,
) -> Result<(), Error> {
if self.forward.contains_key(name) {
Expand All @@ -109,8 +110,10 @@ where
pairs.as_collection().distinct()
}
};

unprobed.probe_with(&mut self.probe)
match probe_progress {
true => unprobed.probe_with(&mut self.probe),
false => unprobed,
}
};

self.attributes.insert(name.to_string(), config);
Expand Down
2 changes: 1 addition & 1 deletion src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ where
for (aid, config, datoms) in attribute_streams.drain(..) {
self.context
.internal
.create_sourced_attribute(&aid, config, &datoms)?;
.create_sourced_attribute(&aid, config, true, &datoms)?;
}

Ok(())
Expand Down

0 comments on commit a73c867

Please sign in to comment.