Skip to content

Commit

Permalink
Automated fixes to follow Rust development
Browse files Browse the repository at this point in the history
Applied fixes:
	*priv attribute removal
	*attribute fix (cf rust-lang/rust#2569)
	*Rename Port to Receiver (cf rust-lang/rust@7858065)
	*logging macros need the log crate
  • Loading branch information
Geal committed Apr 2, 2014
1 parent df0b4b5 commit 0c2ee2b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/statsd/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ data and timing a function call). Most work is handled by the server.
**TODO**: allow prefixing keys.
*/
pub struct Client {
priv dest: SocketAddr,
priv sock: UdpSocket
dest: SocketAddr,
sock: UdpSocket
}


Expand Down
8 changes: 4 additions & 4 deletions src/statsd/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ will be received by the server, and there is (by design) no indication of
this.
*/

#[comment = "statsd implementation"];
#[license = "MIT"];
#[crate_type = "lib"];
#[crate_id = "statsd#0.0.0"];
#![comment = "statsd implementation"]
#![license = "MIT"]
#![crate_type = "lib"]
#![crate_id = "statsd#0.0.0"]

extern crate test;
extern crate time;
Expand Down
5 changes: 4 additions & 1 deletion src/statsd/server/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#![feature(phase)]
#[phase(syntax, link)]
extern crate log;
extern crate std;
extern crate test;
extern crate sync;
Expand Down Expand Up @@ -118,7 +121,7 @@ fn print_usage() {
println!("Usage: {} [options]", os::args()[0]);
println!(" -h --help Show usage information");
println!(" --graphite host[:port] Enable the graphite backend. \
Port will default to 2003 if not specified.");
Receiver will default to 2003 if not specified.");
println!(" --console Enable console output.");
println!(" --port port Have the statsd server listen on this \
UDP port. Defaults to {}.", DEFAULT_UDP_PORT);
Expand Down

0 comments on commit 0c2ee2b

Please sign in to comment.