File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1- use anyhow:: Error ;
2- use std:: iter:: repeat_with;
31use std:: num:: NonZeroUsize ;
4- use std:: sync:: Arc ;
52use std:: { collections:: HashMap , process} ;
3+ use std:: iter:: repeat_with;
4+ use std:: sync:: Arc ;
5+ use anyhow:: Error ;
66use time:: { Duration , OffsetDateTime } ;
77
88use radicle:: prelude:: RepoId ;
9- use radicle:: version:: Version ;
109use radicle:: Profile ;
10+ use radicle:: version:: Version ;
1111use radicle_http_api as httpd;
1212use radicle_http_api:: api;
1313use radicle_http_api:: api:: auth:: { AuthState , Session } ;
@@ -23,7 +23,7 @@ pub const HELP_MSG: &str = r#"
2323Usage
2424
2525 radicle-http-api [<option>...]
26-
26+
2727Options
2828
2929 --listen <address> Address to listen on (default: 0.0.0.0:8080)
@@ -126,7 +126,9 @@ fn parse_options() -> Result<httpd::Options, Error> {
126126 . checked_add ( options. session_expiry )
127127 . unwrap ( ) ,
128128 } ;
129- let encrypted_session_id = signer. try_sign ( session_id. as_bytes ( ) ) ?. to_string ( ) ;
129+ let encrypted_session_id = signer
130+ . try_sign ( session_id. as_bytes ( ) ) ?
131+ . to_string ( ) ;
130132 let mut sessions = ctx. open_session_db ( ) ?;
131133 let ok = sessions
132134 . insert ( & encrypted_session_id, & session)
You can’t perform that action at this time.
0 commit comments