Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/freenet/freenet-core into f…
Browse files Browse the repository at this point in the history
…reenet#1166-improve-network-monitor
  • Loading branch information
alexisbatyk committed Oct 31, 2024
2 parents ea3a214 + a3e55d6 commit 40195ca
Show file tree
Hide file tree
Showing 15 changed files with 373 additions and 193 deletions.
85 changes: 85 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions crates/core/src/client_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ static CLIENT_ID: AtomicUsize = AtomicUsize::new(1);
impl ClientId {
pub const FIRST: Self = ClientId(0);

#[cfg(test)]
pub(crate) const fn new(id: usize) -> ClientId {
Self(id)
}

pub fn next() -> Self {
ClientId(CLIENT_ID.fetch_add(1, std::sync::atomic::Ordering::SeqCst))
}
Expand Down
Loading

0 comments on commit 40195ca

Please sign in to comment.