summaryrefslogtreecommitdiffstats
path: root/src/client/access_token.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-07-30 07:45:29 +0800
committerGitHub <noreply@github.com>2024-07-30 07:45:29 +0800
commitcc74be5d2163fbb1e9d57f85d5546857c6602446 (patch)
tree9897a88950ad6fc65dbd63f0cb9bbc9e7290d950 /src/client/access_token.rs
parent4c18e91165269970747bd2734b9b5db013ade2c2 (diff)
downloadaichat-cc74be5d2163fbb1e9d57f85d5546857c6602446.tar.gz
refactor: several improvements (#765)
Diffstat (limited to 'src/client/access_token.rs')
-rw-r--r--src/client/access_token.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/access_token.rs b/src/client/access_token.rs
index 07640d5..0f69d9a 100644
--- a/src/client/access_token.rs
+++ b/src/client/access_token.rs
@@ -1,10 +1,9 @@
use anyhow::{anyhow, Result};
use chrono::Utc;
use indexmap::IndexMap;
-use lazy_static::lazy_static;
use parking_lot::RwLock;
-lazy_static! {
+lazy_static::lazy_static! {
static ref ACCESS_TOKENS: RwLock<IndexMap<String, (String, i64)>> =
RwLock::new(IndexMap::new());
}