From ff8da9d246cfb1982a3402807d5e9f67a73470da Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 24 Jun 2022 10:02:36 -0700 Subject: [PATCH] Play with online notification timing again --- controller/PostgreSQL.cpp | 2 +- zeroidc/src/lib.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index a8a741cf9..cf154ecf2 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -1711,7 +1711,7 @@ void PostgreSQL::onlineNotification_Redis() fprintf(stderr, "onlineNotification ran in %llu ms\n", total); - std::this_thread::sleep_for(std::chrono::seconds(1)); + std::this_thread::sleep_for(std::chrono::seconds(5)); } } diff --git a/zeroidc/src/lib.rs b/zeroidc/src/lib.rs index 6bc9de90b..1e57a15a2 100644 --- a/zeroidc/src/lib.rs +++ b/zeroidc/src/lib.rs @@ -288,6 +288,7 @@ impl ZeroIDC { t.claims().registered.clone(); match claims.expiration { Some(exp) => { + println!("exp: {}", exp); (*inner_local .lock() .unwrap()) @@ -297,6 +298,8 @@ impl ZeroIDC { panic!("expiration is None. This shouldn't happen") } } + } else { + panic!("error parsing claims"); } (*inner_local.lock().unwrap()) @@ -592,6 +595,8 @@ impl ZeroIDC { panic!("expiration is None. This shouldn't happen"); } } + } else { + panic!("Failed to parse token"); } i.access_token = Some(tok.access_token().clone());