Fix README tests

This commit is contained in:
Francis Lalonde 2018-01-17 11:24:25 -05:00
parent 9cf6bb8a74
commit 04d1b93ecd
2 changed files with 3 additions and 2 deletions

View File

@ -92,13 +92,13 @@ let _app_metrics = app_metrics(to_stdout()).with_async_queue(64);
The async queue uses a Rust channel and a standalone thread.
The current behavior is to block when full.
For better performance and easy maintenance, metrics should usually be predefined:
For speed and easier maintenance, metrics are usually defined statically:
```rust,skt-plain
#[macro_use] extern crate dipstick;
#[macro_use] extern crate lazy_static;
use dipstick::*;
app_metric!(String, APP_METRICS, app_metrics(to_stdout()));
app_metrics!(String, APP_METRICS = to_stdout());
app_counter!(String, APP_METRICS, {
COUNTER_A: "counter_a",
});

View File

@ -12,6 +12,7 @@ fn main() {{
```rust,skt-fail
extern crate dipstick;
use dipstick::*;
use dipstick::error::Error;
use std::result::Result;
fn main() {{