mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01: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
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use actor::{Actor, ActorRegistry};
|
||||
use actor::{Actor, ActorRegistry, ActorMessageStatus};
|
||||
use rustc_serialize::json;
|
||||
use std::net::TcpStream;
|
||||
|
||||
|
@ -19,8 +19,8 @@ impl Actor for ObjectActor {
|
|||
_: &ActorRegistry,
|
||||
_: &str,
|
||||
_: &json::Object,
|
||||
_: &mut TcpStream) -> Result<bool, ()> {
|
||||
Ok(false)
|
||||
_: &mut TcpStream) -> Result<ActorMessageStatus, ()> {
|
||||
Ok(ActorMessageStatus::Ignored)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue