mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Actor::handle_message should return an enum instad of a boolean #7110 r=jdm
This commit is contained in:
parent
f5e97ef1b5
commit
c7b48240b0
12 changed files with 83 additions and 76 deletions
|
@ -10,7 +10,7 @@ use std::sync::{Arc, Mutex};
|
|||
use time::precise_time_ns;
|
||||
|
||||
use msg::constellation_msg::PipelineId;
|
||||
use actor::{Actor, ActorRegistry};
|
||||
use actor::{Actor, ActorRegistry, ActorMessageStatus};
|
||||
use actors::timeline::HighResolutionStamp;
|
||||
use devtools_traits::DevtoolScriptControlMsg;
|
||||
|
||||
|
@ -33,8 +33,8 @@ impl Actor for FramerateActor {
|
|||
_registry: &ActorRegistry,
|
||||
_msg_type: &str,
|
||||
_msg: &json::Object,
|
||||
_stream: &mut TcpStream) -> Result<bool, ()> {
|
||||
Ok(false)
|
||||
_stream: &mut TcpStream) -> Result<ActorMessageStatus, ()> {
|
||||
Ok(ActorMessageStatus::Ignored)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue