Skip to content

Commit

Permalink
Add gitguardian file, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tbraun96 committed Oct 6, 2024
1 parent 1b31d6e commit aad114d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
19 changes: 19 additions & 0 deletions .gitguardian.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2

exit_zero: false
verbose: false
instance: https://dashboard.gitguardian.com
max_commits_for_hook: 50
allow_self_signed: false # default: false

secret:
ignored_paths:
- '**/README.md'
- 'LICENSE'

show_secrets: false

ignore_known_secrets: false

ignored_detectors:
- Generic Password
5 changes: 1 addition & 4 deletions citadel_sdk/src/prefabs/client/peer_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ use std::marker::PhantomData;
use std::sync::Arc;
use uuid::Uuid;

/// A kernel that connects with the given credentials. If the credentials are not yet registered, then the [`Self::new_register`] function may be used, which will register the account before connecting.
/// This kernel will only allow outbound communication for the provided account
///
/// After establishing a connection to the central node, this kernel then begins connecting to the desired
/// After establishing a connection to the central node, this kernel begins connecting to the desired
/// peer(s)
pub struct PeerConnectionKernel<'a, F, Fut> {
inner_kernel: Box<dyn NetKernel + 'a>,
Expand Down
9 changes: 4 additions & 5 deletions citadel_sdk/src/prefabs/client/single_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ use std::net::SocketAddr;
use std::sync::Arc;
use uuid::Uuid;

/// A kernel that connects with the given credentials. If the credentials are not yet registered, then the [`Self::new_register`] function may be used, which will register the account before connecting.
/// This kernel will only allow outbound communication for the provided account.
///
/// This [`NetKernel`] is the base kernel type for other built-in implementations of [`NetKernel`]
/// This [`SingleClientServerConnectionKernel`] is the base kernel type for other built-in implementations of [`NetKernel`].
/// It establishes connections to a central node for purposes of NAT traversal and peer discovery, and depending on the application layer,
/// can leverage the client to server connection for other purposes that require communication between the two.
pub struct SingleClientServerConnectionKernel<F, Fut> {
handler: Mutex<Option<F>>,
udp_mode: UdpMode,
Expand Down Expand Up @@ -51,7 +50,7 @@ where
Fut: Future<Output = Result<(), NetworkError>> + Send,
{
/// Creates a new [`SingleClientServerConnectionKernel`] with the given settings.
/// The [`ServerConnectionSettings`] must be provided, and the [`on_channel_received`] function will be called when the connection is established.
/// The [`ServerConnectionSettings`] must be provided, and the `on_channel_received` function will be called when the connection is established.
pub fn new(settings: ServerConnectionSettings, on_channel_received: F) -> Self {
let (udp_mode, session_security_settings) =
(settings.udp_mode(), settings.session_security_settings());
Expand Down

0 comments on commit aad114d

Please sign in to comment.