mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
xous: add a small comment to nameserver
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
98289b1405
commit
803667ba28
1 changed files with 2 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ impl ConnectRequest {
|
|||
}
|
||||
}
|
||||
|
||||
/// Request a connection to the nameserver-managed `name`.
|
||||
pub fn connect(name: &str) -> Option<crate::CID> {
|
||||
let mut request = ConnectRequest::new(name)?;
|
||||
let ns_cid = nameserver();
|
||||
|
|
@ -96,6 +97,7 @@ pub fn connect(name: &str) -> Option<crate::CID> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Return the connection ID of the nameserver
|
||||
pub(crate) fn nameserver() -> crate::CID {
|
||||
static NAMESERVER_CID: AtomicU32 = AtomicU32::new(0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue