feat: add session po token cache
This commit is contained in:
parent
29c854b20d
commit
b72b501b6d
15 changed files with 234 additions and 61 deletions
|
|
@ -70,6 +70,9 @@ struct Cli {
|
|||
/// Disable Botguard
|
||||
#[clap(long, global = true)]
|
||||
no_botguard: bool,
|
||||
/// Enable caching for session-bound PO tokens
|
||||
#[clap(long, global = true)]
|
||||
po_token_cache: bool,
|
||||
}
|
||||
|
||||
#[derive(Parser)]
|
||||
|
|
@ -913,6 +916,9 @@ async fn run() -> anyhow::Result<()> {
|
|||
if cli.no_botguard {
|
||||
rp = rp.no_botguard();
|
||||
}
|
||||
if cli.po_token_cache {
|
||||
rp = rp.po_token_cache();
|
||||
}
|
||||
if cli.auth {
|
||||
rp = rp.authenticated();
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue