Rename rpc! -> rpc_service!

This commit is contained in:
Adam Wright
2016-01-08 02:48:56 -08:00
parent 44a30fc237
commit 78d04acaa4
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ extern crate rustc_serialize;
extern crate byteorder;
#[macro_export]
macro_rules! rpc {
macro_rules! rpc_service {
($server:ident: $($fn_name:ident($in_:ty) -> $out:ty;)* ) => {
mod $server {
use rustc_serialize::json;

View File

@@ -5,7 +5,7 @@ extern crate byteorder;
use std::net::{TcpListener, TcpStream};
rpc!(my_server:
rpc_service!(my_server:
hello(String) -> String;
add((i32, i32)) -> i32;
);