Use AtomicU32 in RouteId (#616)

This commit is contained in:
Kai Jewson
2021-12-12 14:19:30 +00:00
committed by GitHub
parent b7cc3d4645
commit 9ed18d92cf
5 changed files with 34 additions and 7 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ async fn authorize(Json(payload): Json<AuthPayload>) -> Result<Json<AuthBody>, A
let claims = Claims {
sub: "[email protected]".to_owned(),
company: "ACME".to_owned(),
exp: 10000000000,
exp: 100000,
};
// Create the authorization token
let token = encode(&Header::default(), &claims, &KEYS.encoding)