Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: Kate Goldenring <[email protected]>
Signed-off-by: Nicolas Belouin <[email protected]>

Co-authored-by: Kate Goldenring <[email protected]>
  • Loading branch information
diconico07 and kate-goldenring committed Aug 1, 2024
1 parent 605f9b4 commit 1aff5b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ serde = "1.0.104"
serde_derive = "1.0.104"
serde_json = "1.0.45"
serde_yaml = { version = "0.8.11", optional = true }
simple-mermaid = { version = "0.1"} # used for docs
simple-mermaid = "0.1" # used for docs
thiserror = "1.0.50"
tokio = { version = "1.0", features = ["rt-multi-thread", "time", "fs", "macros", "net"] }
tokio-stream = { version = "0.1", features = ["net", "sync"] }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
//! This modules is the heart of the discovery process handled by the agent, it is based around the [DiscoveryHandlerRegistry]
//! and uses several other structure to represent and help handling discovery related things.
//! This module is the heart of the discovery process handled by the agent, it is based around the [DiscoveryHandlerRegistry]
//! and uses several other structure to represent and help handle discovery related operations.
//!
//! The [DiscoveryHandlerRegistry] keeps track of registered discovery handlers, multiple endpoints/instances of a given
//! The [DiscoveryHandlerRegistry] keeps track of registered discovery handlers. Note, multiple endpoints/instances of a given
//! handler can be registered at the same time.
//!
//! The [DiscoveryHandlerRegistry] also keeps track of ongoing discovery requests against those discovery handlers, there will be up
//! to one of those query (a [DiscoveryHandlerRequest] object) per Configuration.
//! The [DiscoveryHandlerRegistry] also keeps track of ongoing discovery requests against those discovery handlers. There is one discovery request (a [DiscoveryHandlerRequest] object) per Configuration.
//!
//! Here are some simple diagrams showing how the components interact with each other in different situations:
//!
//! A new DiscoverHandler gets registered (e.g. when it connects and register to the agent registration Unix socket):
//! A new DiscoverHandler gets registered (after it connects to and registers with the agent registration Unix socket):
#![doc=simple_mermaid::mermaid!("diagrams/dh_registration.mmd")]
//!
//! A new query is made by the Configuration Controller:
Expand Down

0 comments on commit 1aff5b6

Please sign in to comment.