Skip to content

Commit 23590e7

Browse files
committed
refactor: [torrust#1195] make method private
1 parent 81b4b3c commit 23590e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/authentication/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl Facade {
186186
/// # Arguments
187187
///
188188
/// * `key` - The pre-generated key.
189-
pub async fn add_permanent_auth_key(&self, key: Key) -> Result<PeerKey, databases::error::Error> {
189+
async fn add_permanent_auth_key(&self, key: Key) -> Result<PeerKey, databases::error::Error> {
190190
self.add_auth_key(key, None).await
191191
}
192192

@@ -239,9 +239,9 @@ impl Facade {
239239
self.in_memory_key_repository.remove(key).await;
240240
}
241241

242-
/// The `Tracker` stores the authentication keys in memory and in the
243-
/// database. In case you need to restart the `Tracker` you can load the
244-
/// keys from the database into memory with this function. Keys are
242+
/// The `Tracker` stores the authentication keys in memory and in the
243+
/// database. In case you need to restart the `Tracker` you can load the
244+
/// keys from the database into memory with this function. Keys are
245245
/// automatically stored in the database when they are generated.
246246
///
247247
/// # Errors

0 commit comments

Comments
 (0)