Skip to content

Commit

Permalink
Use a type annotation in the event bus test rather than the turbofish…
Browse files Browse the repository at this point in the history
… annotation
  • Loading branch information
OscartGiles committed Jul 30, 2024
1 parent 6cce39a commit d40e478
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rivelin_actors/tests/event_bus.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::time::Duration;

use futures_util::StreamExt;
use rivelin_actors::event_bus::{EventBus, EventBusAddr, EventSinkState, Filter, Topic};
use rivelin_actors::event_bus::{Consumer, EventBus, EventBusAddr, EventSinkState, Filter, Topic};
use rivelin_actors::Actor;

#[tokio::test]
Expand All @@ -15,9 +15,7 @@ async fn event_bus_string() -> anyhow::Result<()> {
type MessageType = String;
}

let mut consumer = addr
.consumer::<HelloTopic, _>(Filter::all_subtopics)
.await?;
let mut consumer: Consumer<HelloTopic> = addr.consumer(Filter::all_subtopics).await?;

let producer = addr.producer(HelloTopic);
producer
Expand Down

0 comments on commit d40e478

Please sign in to comment.