Skip to content

Commit

Permalink
fix test, update alpha v
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Stearns committed Jul 10, 2020
1 parent 6c5ecb3 commit 81d1244
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pulsar"
version = "1.0.0-alpha-3"
version = "1.0.0-alpha-4"
edition = "2018"
authors = [
"Colin Stearns <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async fn main() -> Result<(), pulsar::Error> {
env_logger::init();

let addr = "pulsar://127.0.0.1:6650";
let pulsar: Pulsar<TokioExecutor> = Pulsar::builder(addr).build().await?;
let pulsar: Pulsar<_> = Pulsar::builder(addr, TokioExecutor).build().await?;
let mut producer = pulsar
.producer()
.with_topic("non-persistent://public/default/test")
Expand Down Expand Up @@ -108,7 +108,7 @@ async fn main() -> Result<(), pulsar::Error> {
env_logger::init();

let addr = "pulsar://127.0.0.1:6650";
let pulsar: Pulsar<TokioExecutor> = Pulsar::builder(addr).build().await?;
let pulsar: Pulsar<_> = Pulsar::builder(addr, TokioExecutor).build().await?;

let mut consumer: Consumer<TestData, _> = pulsar
.consumer()
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ mod tests {
let addr = "pulsar://127.0.0.1:6650";
let topic = format!("test_batching_{}", rand::random::<u16>());

let pulsar: Pulsar<TokioExecutor> = Pulsar::builder(addr).build().await.unwrap();
let pulsar: Pulsar<_> = Pulsar::builder(addr, TokioExecutor).build().await.unwrap();
let mut producer = pulsar.producer()
.with_topic(&topic)
.with_options(ProducerOptions {
Expand Down

0 comments on commit 81d1244

Please sign in to comment.