mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
devtools: TabDescription actor
This commit is contained in:
parent
714acb942c
commit
da80d4ff01
6 changed files with 148 additions and 28 deletions
|
@ -159,7 +159,13 @@ impl ActorRegistry {
|
|||
msg: &Map<String, Value>,
|
||||
stream: &mut TcpStream,
|
||||
) -> Result<(), ()> {
|
||||
let to = msg.get("to").unwrap().as_str().unwrap();
|
||||
let to = match msg.get("to") {
|
||||
Some(to) => to.as_str().unwrap(),
|
||||
None => {
|
||||
warn!("Received unexpected message: {:?}", msg);
|
||||
return Err(());
|
||||
},
|
||||
};
|
||||
|
||||
match self.actors.get(to) {
|
||||
None => debug!("message received for unknown actor \"{}\"", to),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue