You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The examples in the readme don't work in version 0.6.1.
If I create a new project and copy the example code:
use dogstatsd::{Client, Options};
fn main() {
let client = Client::new(Options::default());
// Increment a counter
client.incr("my_counter", vec![]).unwrap();
}
I get a compiler error:
Compiling rust-test v0.1.0 (/Users/duncanuszkay/src/github.com/Shopify/rust-test)
error[E0599]: no method named `incr` found for type `std::result::Result<dogstatsd::Client, dogstatsd::error::DogstatsdError>` in the current scope
--> src/main.rs:7:12
|
7 | client.incr("my_counter", vec![]).unwrap();
| ^^^^
error: aborting due to previous error
It seems that this is due to the fact that the Client::new method returns a result in the newer code.
Additionally the link to full documentation is out of date:
The text was updated successfully, but these errors were encountered:
The examples in the readme don't work in version 0.6.1.
If I create a new project and copy the example code:
I get a compiler error:
It seems that this is due to the fact that the Client::new method returns a result in the newer code.
Additionally the link to full documentation is out of date:
The text was updated successfully, but these errors were encountered: