Skip to content

Commit 5d8de28

Browse files
committed
Add appropriate docstrings to test-utils
1 parent 78d51f8 commit 5d8de28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

payjoin-test-utils/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub fn init_tracing() {
3838

3939
pub struct TestServices {
4040
cert_key: (Vec<u8>, Vec<u8>),
41+
/// redis is an implicit dependency of the directory service
4142
#[allow(dead_code)]
4243
redis: (u16, Container<'static, Redis>),
4344
directory: (u16, Option<JoinHandle<Result<(), BoxSendSyncError>>>),
@@ -114,7 +115,7 @@ pub async fn init_directory(
114115
payjoin_directory::listen_tcp_with_tls_on_free_port(db_host, timeout, local_cert_key).await
115116
}
116117

117-
/// generates or gets a DER encoded localhost cert and key.
118+
/// generate or get a DER encoded localhost cert and key.
118119
pub fn local_cert_key() -> (Vec<u8>, Vec<u8>) {
119120
let cert =
120121
rcgen::generate_simple_self_signed(vec!["0.0.0.0".to_string(), "localhost".to_string()])

0 commit comments

Comments
 (0)