Remove outdated todo comment

This commit is contained in:
Justin Starry 2020-03-08 17:43:54 +08:00
parent 212574a80b
commit 3a35abab9e

View File

@ -585,10 +585,7 @@ impl Discoverer for Public {
let bridge = REMOTE_AGENTS_POOL.with(|pool| {
let mut pool = pool.borrow_mut();
match pool.entry::<RemoteAgent<AGN>>() {
anymap::Entry::Occupied(mut entry) => {
// TODO(#945): Insert callback!
entry.get_mut().create_bridge(callback)
}
anymap::Entry::Occupied(mut entry) => entry.get_mut().create_bridge(callback),
anymap::Entry::Vacant(entry) => {
let slab: Shared<Slab<Option<Callback<AGN::Output>>>> =
Rc::new(RefCell::new(Slab::new()));