Remove outdated todo

This commit is contained in:
Justin Starry 2020-03-08 17:45:18 +08:00
parent 3a35abab9e
commit bf0a610513

View File

@ -292,10 +292,7 @@ impl Discoverer for Context {
let bridge = LOCAL_AGENTS_POOL.with(|pool| {
let mut pool = pool.borrow_mut();
match pool.entry::<LocalAgent<AGN>>() {
anymap::Entry::Occupied(mut entry) => {
// TODO(#940): Insert callback!
entry.get_mut().create_bridge(callback)
}
anymap::Entry::Occupied(mut entry) => entry.get_mut().create_bridge(callback),
anymap::Entry::Vacant(entry) => {
let scope = AgentScope::<AGN>::new();
let launched = LocalAgent::new(&scope);