Skip to content

Commit f542df2

Browse files
committed
Merge branch 'feat/webhooks'
# Conflicts: # src/main.rs
2 parents 91437ca + 508fcae commit f542df2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/main.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
use anyhow::Error;
2-
use std::iter::repeat_with;
31
use std::num::NonZeroUsize;
4-
use std::sync::Arc;
52
use std::{collections::HashMap, process};
3+
use std::iter::repeat_with;
4+
use std::sync::Arc;
5+
use anyhow::Error;
66
use time::{Duration, OffsetDateTime};
77

88
use radicle::prelude::RepoId;
9-
use radicle::version::Version;
109
use radicle::Profile;
10+
use radicle::version::Version;
1111
use radicle_http_api as httpd;
1212
use radicle_http_api::api;
1313
use radicle_http_api::api::auth::{AuthState, Session};
@@ -23,7 +23,7 @@ pub const HELP_MSG: &str = r#"
2323
Usage
2424
2525
radicle-http-api [<option>...]
26-
26+
2727
Options
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)

0 commit comments

Comments
 (0)