Skip to content

Commit

Permalink
docs: add docs to actor swarm types
Browse files Browse the repository at this point in the history
  • Loading branch information
tqwewe committed Jan 7, 2025
1 parent aac85d2 commit 5b838d2
Show file tree
Hide file tree
Showing 2 changed files with 177 additions and 39 deletions.
4 changes: 2 additions & 2 deletions examples/manual_swarm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use kameo::{
actor::ActorID,
error::RemoteSendError,
remote::{
ActorSwarm, ActorSwarmEvent, DefaultSwarmBehaviour, SwarmBehaviour, SwarmReq, SwarmResp,
ActorSwarm, ActorSwarmBehaviour, ActorSwarmEvent, SwarmBehaviour, SwarmReq, SwarmResp,
},
};
use libp2p::{
Expand Down Expand Up @@ -71,7 +71,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

fn handle_event(
swarm: &mut Swarm<CustomBehaviour>,
actor_behaviour: &mut DefaultSwarmBehaviour,
actor_behaviour: &mut ActorSwarmBehaviour,
event: SwarmEvent<CustomBehaviourEvent>,
) {
match event {
Expand Down
Loading

0 comments on commit 5b838d2

Please sign in to comment.