Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed Jun 3, 2024
1 parent 3223677 commit 569d9f9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions iroh-willow/src/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::{
meadowcap,
willow::{AuthorisedEntry, Entry, WriteCapability},
},
session::{Channels, Error, Role, Session, SessionInit},
session::{Channels, Error, Role, Session, SessionId, SessionInit},
store::{
traits::{EntryReader, SecretStorage, Storage},
Origin, Store,
Expand All @@ -25,8 +25,6 @@ use crate::{

pub const INBOX_CAP: usize = 1024;

pub type SessionId = u64;

#[derive(Debug, Clone)]
pub struct ActorHandle {
tx: flume::Sender<ToActor>,
Expand Down
2 changes: 2 additions & 0 deletions iroh-willow/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ pub use self::channels::Channels;
pub use self::error::Error;
pub use self::state::Session;

pub type SessionId = u64;

/// Data from the initial transmission
///
/// This happens before the session is initialized.
Expand Down
2 changes: 1 addition & 1 deletion iroh-willow/src/session/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use futures_lite::Stream;
use tracing::{Instrument, Span};

use crate::{
actor::SessionId,
net::InitialTransmission,
proto::{
challenge::ChallengeState,
Expand All @@ -30,6 +29,7 @@ use crate::{
};

use super::{
SessionId,
channels::ChannelSenders,
resource::{ResourceMap, ResourceMaps},
AreaOfInterestIntersection, Error, Role, Scope, SessionMode,
Expand Down
2 changes: 1 addition & 1 deletion iroh-willow/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{
use tokio::sync::broadcast;

use crate::{
actor::SessionId,
session::SessionId,
proto::{
grouping::Area,
willow::{AuthorisedEntry, NamespaceId},
Expand Down

0 comments on commit 569d9f9

Please sign in to comment.